[MUD-Dev] Re: processors

Chris Gray cg at ami-cg.GraySage.Edmonton.AB.CA
Sun Jan 31 22:20:21 New Zealand Daylight Time 1999

[Greg Underwood:]

 >On a side note, does anyone know of any good, free profilers, for linux or

Traditionally, on UNIX systems, the compilers support the -p and/or -pg
flags, which request that profiling code be added and/or that special
profiling versions of standard libraries be added in. Then, you run
the program with whatever data you want to get a profile of it handling,
and it produces an output data file. You then feed that to 'prof'
or 'gprof' to get nice summaries of where your time is going. The Gnu
compilers support all of that, so on Linux it is there.

I don't know for sure whether VC++ does it that way or not, and I can't
check since all the Windows NT programming I do is at work. My gut feeling
is that if you check the compiler flags, there will be one for profiling.

Don't design inefficiency in - it'll happen in the implementation. - me

Chris Gray     cg at ami-cg.GraySage.Edmonton.AB.CA

More information about the MUD-Dev mailing list