Hello,
I realize this is an old post but my first time attempt to profile is very similar :
main.cpp:
#include <iostream>
using namespace std;
int main()
{
cout << "Hello world!" << endl;
return 0;
}
-------------- Build: Debug in test_profiler ---------------
g++ -Wall -fexceptions -pg -g -I/usr/local/boost_1_37_0 -c /Users/erwann/dev/cpp/libs/test_profiler/main.cpp -o obj/Debug/main.o
g++ -o bin/Debug/test_profiler obj/Debug/main.o -pg
Output size is 13.97 KB
Process terminated with status 0 (0 minutes, 0 seconds)
0 errors, 0 warnings
I run the above fine, but it does not generate a gmon.out file anywhere in the tree rooted at /Users/erwann/dev/cpp/libs/test_profiler/
Please help.
i686-apple-darwin9-gcc-4.0.1