delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/12/20:22:34

Date: Wed, 12 Nov 1997 17:20:23 -0800 (PST)
Message-Id: <199711130120.RAA04269@adit.ap.net>
Mime-Version: 1.0
To: xhoul04 AT vse DOT cz (Houska Ludek - IN), djgpp AT delorie DOT com
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: Does anybody knows how to use gprof ?

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019