ateles
04-20-2002, 06:31 PM
I have been trying to generate a profile for a C++ program by typing:
c++ -pg test.cpp
The very first time I did this, the file gmon.out was created so I typed:
gprof
and it return an error like "can't read gmon.out, file is truncated"
I recompiled again to try it once more and this time the file gmon.out was not created, and it has never been created since (I have recompiled with the -pg option many, many times in different directories and with different source files). Anybody knows how to solve this?
Thanks,
:(
c++ -pg test.cpp
The very first time I did this, the file gmon.out was created so I typed:
gprof
and it return an error like "can't read gmon.out, file is truncated"
I recompiled again to try it once more and this time the file gmon.out was not created, and it has never been created since (I have recompiled with the -pg option many, many times in different directories and with different source files). Anybody knows how to solve this?
Thanks,
:(