Mail Archives: djgpp/1997/11/12/20:22:34
At 02:33 11/12/1997, Houska Ludek - IN wrote:
>
> Hi !
>
> Do you know how to use gprof, or do you know where to get the
>documentation. ( Maybe I have the doc, but I don't know which one it is. )
Although the FAQ says gprof is documented only on a man page, from at least
2.7 onward there is an Info file for it. However, by some oversight it is
not included in the binary distribution. Also, it is not in the top-level
info "dir". But if you get the source distribution, the file is
`gnu/binutlNNN/gprof/gprof.inf'. Or perhaps someone can e-mail it. You can
then read it with `info -f gprof.inf'.
Profiling is explained in section 13 of the DJGPP FAQ. Basically, you
compile and link with the `-pg' option, run the program, and then run `gprof
foo.exe' which will dump the profile onto standard output (you may want to
pipe or redirect it somewhere). I've found the profile to be rather
self-explanatory, so you may not actually need the documentation, but YMMV.
Nate Eldredge
eldredge AT ap DOT net
- Raw text -