[CODE-AMIN]Profiling ? (was Re:Missed Pulses.)

From: Pure Krome (Pure@SPRINT.COM.AU)
Date: 03/13/98


Hello

>   My suggestion to this problem is to take a look at possibly using a
> profiler. Most likely if you use gcc you can compile the mud using the -pg
> flag. (i.e. in the MYFLAGS= section of the makefile add -pg) then let the
> mud run for a while (maybe a day or so)  and then restart it, and run
> gprof or your other preferred profiler on the output file (usually
> gmon.out).  I'm not 100% sure of the syntax (I haven't used it in quite a
> while) but it does produce useful information such as how long in time/cpu
>  cycles it spends in each function.

Could you please elaborate on what this profiler thingy does? could it be used
to dertermine where bad memory lies (ie. areas of code that could possibly be
using memory and not freeing em, etc ...). What about slow / laggy areas of
code ?

Jussy

--
*----------------------------------------------------------*
|                                         o Pure Krome o   |
|    ... The Queen of Seduction, Ms. Lyposuction ...       |
*----------------------------------------------------------*


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST