This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Please guide me about gcov and gprof for basic-block information
- From: fahimeh at ac dot upc dot edu
- To: iant at google dot com
- Cc: shafitvm at gmail dot com, nickc at redhat dot com, binutils at sourceware dot org
- Date: Fri, 9 Jan 2009 15:06:57 +0100
- Subject: Please guide me about gcov and gprof for basic-block information
Hello,
I am writing to ask you about gcov and gprof.
1) I am trying gcov for a cpp program (using gcov test.cpp after running the
program)for gathering basic block information. but I encounter to this error:
test.gcno : can not open graph file.
I used -pg -profile-arcs and -ftest-coverage for compiling. Would you please
guide me about this error? How test.bb and test.bbg files are created?
2) I examined "gprof -i test gmon.out bb.out" and the results were :
File `gmon.out' (version 1) contains:
1 histogram record
5 call-graph records
0 basic-block count records
bb.out: No such file or directory
also about bb.out.conv!
Please guide me how I can have basic-block count records for a program?
and also please let me know if I can use another tool for basic block profiling.
your help would be highly appreciated,
best regards,
fahimeh