Hello all,

According to GNU gprof manual

http://www.gnu.org/software/binutils/manual/gprof-2.9.1/html_chapter/gprof_5.html#SEC18

basic-block counting can be analyzed with gprof if a program is
augmented for that.For this the program is to be compiled with `gcc
... -g -pg -a' option . But '-a' option has been replaced with
-fprofile-arcs and with this options the output files are actually
produced for gcov.
But GNU C library has code for printing basic block records on to gmon.out file.
So is it possible to do the above with gprof ? If it is possible with
is the option that has to be used when compiling the program?

Thanks for your time.

Regards,
Shafi

Reply via email to