When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.
The profile data is stored in a gmon.out file.Do you have one created after you run your exe?Have you checked the build log after you've enabled the option?p.s. If you don't have a project probably it is a good idea to create one.
-------------- Build: Debug in profile_test (compiler: GNU GCC Compiler)---------------x86_64-w64-mingw32-g++.exe -Wall -pg -fexceptions -g -Wmissing-include-dirs -DHAVE_TR1_TYPE_TRAITS -DGIT_BUILD -c C:\SourceCode\test\profile_test\main.cpp -o obj\Debug\main.ox86_64-w64-mingw32-g++.exe -o bin\Debug\profile_test.exe obj\Debug\main.o -pg -lgmon -pg Output file is bin\Debug\profile_test.exe with size 164.69 KBProcess terminated with status 0 (0 minute(s), 12 second(s))0 error(s), 0 warning(s) (0 minute(s), 12 second(s)) -------------- Run: Debug in profile_test (compiler: GNU GCC Compiler)---------------Checking for existence: C:\SourceCode\test\profile_test\bin\Debug\profile_test.exeExecuting: "C:\Program Files (x86)\CodeBlocks_13_12/cb_console_runner.exe" "C:\SourceCode\test\profile_test\bin\Debug\profile_test.exe" (in C:\SourceCode\test\profile_test\.)Process terminated with status 0 (0 minute(s), 2 second(s))
Thanks for the reply. Yes I have created a project and I've checked the project folder but don't see gmon.out in there. I've also checked the "bin" and "obj" sub-folders but don't see gmon.out. The project is just a simple printf("Hello World!\n");. In the build log there is nothing unusual or mention of Gprof.
If you are essentially running a "hello world" program that finishes in a fraction of a second, there simply is not any profiling data for gprof to collect, so nothing can be output.
Read the docs, please. They'll make lots of thing clear what gprof can and cannot do.