[Home] [Groups] - Message: [Prev in Group] [Next in Group]

nu.kanga.list.mud-dev

9538: [MUD-Dev] Re: processors

[Full Header] [Plain Text]
From: Chris Gray <cg@ami-cg.GraySage.Edmonton.AB.CA>
Newsgroups: nu.kanga.list.mud-dev
Date: Sun, 31 Jan 1999 22:20:21 -0700
Organization: Kanga.Nu
[Greg Underwood:]

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

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@ami-cg.GraySage.Edmonton.AB.CA