Zohar Levi wrote: > when I run test it generates the gmon.out, but gprof > complains: > > gprof: gmon.out file is missing call-graph data It's complaining because there is no call-graph info because your trivial testcase only has a single function. If you run it on a non-trivial testcase, or if you ask for a flat profile (-p) it will work fine. The following thread explains the problem and includes a patch which changes the default behavior in this situation to -p. Note that gprof is part of binutils and not part of gcc and questions about it are better suited for the binutils list. http://sourceware.org/ml/binutils/2006-04/msg00421.html Brian