Date: Wed, 12 Nov 1997 17:20:23 -0800 (PST) Message-Id: <199711130120.RAA04269@adit.ap.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: xhoul04 AT vse DOT cz (Houska Ludek - IN), djgpp AT delorie DOT com From: Nate Eldredge Subject: Re: Does anybody knows how to use gprof ? Precedence: bulk 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