[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

profiling on linux (prof, gprof, bprof...)



Hi.  
I have been trying to optimize a program I am running (it now takes
about a week on a PentionPro200 :-( 
and I seem to be lost.  my system does not have prof or it's man page,
and I have not been able to find a why of getting line-by-line
profiles of the run.  I got the latest gprof (from binutils-2.8) and
all I got from it was function profiles.  I found bprof, but it wont
run on ELF.  I used -a in the compilation, and again, got some cryptic
output I have not been able to understand.
I have, in the past, done similar things on Irix, Sun-OS and
Digital-Unix, but just cant seem to get what I want from my dear
Linux. 
Any suggestions?

ps:  are there optimizations flags for gcc that tell it to use the
Pentium-Pro to it's fullest?  (Or is that the default and I am making
a fool of myself in public now ?)

				Matan <MN>