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]

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





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