This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Basic block profiling info for gprof


Hello all,

Previously -a option was used to generate extra code to write profile
information for basic blocks. But this options has been replaced with
-fprofile-arcs. According to gprof.info

"   In addition to the `-pg' and `-g' options, older versions of GCC
required you to specify the `-a' option when compiling in order to
instrument it to perform basic-block counting.  Newer versions do not
require this option and will not accept it; basic-block counting is
always enabled when `-pg' is on. "

But compiling a code similar to the one given as a example in
gprof.info and using gporf i am not getting any basic block profiling
info.This is what i did

a) $ gcc -g -pg 1.c

After executing

b) gprof -i

c) gprof -l -A -x > output.gmon

This is not providing any basic block profiling information.
Does gprof produce any basic block profiling information?
Am i missing something?

Thanks for your time.

Regards,
Shafi


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]