GNU Profiler Empty Flat Profile

806 Views Asked by At

I am trying to learn profiling with GNU gprof, and I just tried to take the same results as in this tutorial by using exactly the same code and applying the same steps there: http://www.ibm.com/developerworks/library/l-gnuprof.html

However, when I try to reach flat profile by gprof example1 gmon.out -p, what I see nothing. It says

Each sample counts as 0.01 seconds. no time accumulated

and I am seeing an empty flat profile. And when I try to obtain call graph, I receive

gprof: gmon.out file is missing call-graph data

I am using Ubuntu on a VirtualBox VM. May using VirtualBox be the reason?

0

There are 0 best solutions below