gprof not producing annotated source

Brian Dessent brian@dessent.net
Thu Dec 4 12:11:00 GMT 2008


Chris Stankevitz wrote:

> d) I'm compiling and linking with this command: g++ -Wall -O0 -march=native -fprofile-arcs -ftest-coverage *.cpp -lusrp -lpthread -lfftw3 -lfftw3f -pg
> 
> Questions:
> 
> 1) Why does b) produce no output?

I think that gprof needs debug info from the compiler in order to show
annotated source, so try with -g.

Brian



More information about the Binutils mailing list