HS> It doesn't seem to work. When i try running "gprof tex.exe | more"
NS>it
HS> returns with an error message "unrecognized file format".
HS> I have compiled correctly with -pg and no -fomit-frame-pointer.
HS> (they're incompatible).
NS> Did you compile without the -s ?
HS> I tried running "gprof tex.o |more" and it dumped a whole lot of
HS> directives on the screen (as if i were to type gprof /? etc).
NS> Lets try this again :) After compile, run your newly compiled program.
NS>This
NS>should dump out a file. then run gprof via > a (redirect to
NS>file
NS>a) or perhaps | more I havnt tried piping it to more though.
This is what I did :-
A) Compiled my program WITH -s and -pg and no -romit-blahblahblah.
B) Ran my newly compiled program.
C) gprof tex.exe > report.txt
gprof reported,
"c:/gcc/bin/gprof.exe: tex.exe: Bad format".
Could you tell me how I really do it please?
... Enter any 12-digit prime number to continue.
--- Ezycom V1.48g0 01fd016b
---------------
* Origin: Fox's Lair BBS Bris Aus +61-7-38033908 V34+ Node 2 (3:640/238)
|