This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
gprof not producing annotated source
- From: Chris Stankevitz <chrisstankevitz at yahoo dot com>
- To: binutils at sourceware dot org
- Date: Wed, 3 Dec 2008 15:43:09 -0800 (PST)
- Subject: gprof not producing annotated source
- Reply-to: chrisstankevitz at yahoo dot com
Hello,
Facts:
a) 'gprof ./a.out' produces lots of profiling info
b) 'gprof --annotated-source ./a.out' produces no output
c) 'gprof --line --annotated-source ./a.out' produces no output but uses more CPU than b)
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?
2) Why does c) use more CPU than b) when --line is documented as "This feature works with programs compiled by older versions of the "gcc" compiler."
Thank you!
Chris