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

Re: Problems when linking against the profiled libc




"Nadav Har'El" <nyh@math.technion.ac.il> writes:

> By the way, when profiling, you should also use "-g". 

Not true. You should use your normal compilation options. In
particular, you might be interested in profiling optimized code
without extra debugging information.

You need -g if you want to do line-by-line profiling (rather than
function-by-function), because -g is what is tracking source code
lines. Check gprof's info pages.

-- 
Oleg Goldshmidt | ogoldshmidt@NOSPAM.computer.org 
"If it ain't broken, it has not got enough features yet."

=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il