[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: profiling howto/info
On Fri, Aug 27, 1999 at 01:45:42PM +0200, Ingo Ruhnke wrote:
> Erik <br0ke@math.smsu.edu> writes:
>
> > Is there a good article/tutorial/howto to read up on profiling? I've seen
> > profiling macros used in code before, but I'm not clear on the implementation.
>
> What about:
>
> $ info gprof
For profiling, I have lcc installed. lcc is the free
compiler from princeton (http://www.cs.princeton.edu/lcc) that's
used in the gaming mod community a lot. Anyways, lcc's
profile prints line usage counts, which I don't think gprof can.
(If I'm wrong, *please* somebody tell me..)
Of course, the other advantage of using lcc for profiling
is forcing me to make sure that it compiles cleanly under both
gcc and lcc. Since they both complain about slightly different
things (lcc spits out somethings gcc -Wall doesn't), I use
lcc before I use lint (which I must also stress is a very
important development tool)
Damian
--
Damian Gryski ==> dgryski@uwaterloo.ca | Linux, the choice of a GNU generation
512 pt Hacker Test score = 24% | 500 pt Nerd Test score = 44.6%
geek / linux zealot / coder / juggler / sysadmin