This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: gprof not producing annotated source
- From: Brian Dessent <brian at dessent dot net>
- To: chrisstankevitz at yahoo dot com
- Cc: binutils at sourceware dot org
- Date: Thu, 04 Dec 2008 04:11:08 -0800
- Subject: Re: gprof not producing annotated source
- References: <273957.36813.qm@web52903.mail.re2.yahoo.com>
- Reply-to: binutils at sourceware dot org
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