• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

Disable the WorldServer profiler

Newbie Spellweaver
Joined
Jul 31, 2008
Messages
70
Reaction score
43
Don't you hate right-clicking the worldserver GUI everytime to disable the profiler? Here's a simple fix that will disable the profiler. But first, for the ones that do not know what the profiler is, some screenshots:

WorldServer with profiler on:
Maples - Disable the WorldServer profiler - RaGEZONE Forums


It generates data like this:
Maples - Disable the WorldServer profiler - RaGEZONE Forums


How to disable it:
  1. Open VersionCommon.h in the WorldServer project
  2. Find all occurrences of #define __NEW_PROFILE and comment those lines out (two slashes at the beginning of the line //)
  3. Do the same from above for #define __PROFILE_RUN
  4. Compile the WorldServer and you're done.

Maples - Disable the WorldServer profiler - RaGEZONE Forums


Result:
Maples - Disable the WorldServer profiler - RaGEZONE Forums


Voila, no more profiler logs.
 
Trust your senses
Joined
Sep 12, 2009
Messages
661
Reaction score
173
Why not make it be off by default and when someone right clicks the WorldServer it turns on? Not having this might make you debugging a bit harder.
 
Newbie Spellweaver
Joined
Jul 31, 2008
Messages
70
Reaction score
43
Why not make it be off by default and when someone right clicks the WorldServer it turns on? Not having this might make you debugging a bit harder.

That could be nice, however, I highly doubt 99% of the community will ever have to, or need to, use the profiler.
 
Flyff Developer
Loyal Member
Joined
Apr 6, 2009
Messages
1,873
Reaction score
384
Besides, the profiler doesn't tell you exactly what the problem is when you're debugging. Using Visual Studio to debug is usually a lot more helpful.
 
Back
Top