I compile this code
#include <stdlib.h>
void a(void);
void b();
int main()
{
a();
b();
return 0;
}
void a(void)
{
_sleep(200);
return;
}
void b()
{
int i;
for(i=1;i<10;i++)
{
a();
}
}
build with command
mingw32-g++.exe -Wall -pg -g -ID:\Utils\Lang\MinGW\include -c main.c -o obj\Debug\main.o
mingw32-g++.exe -LD:\Utils\Lang\MinGW\lib -o .\TestGProf.exe obj\Debug\main.o -pg -lgmon
run plug-in "Code profiler" and get only:
File `G:\Project\TestGProf\gmon.out' (version 0) contains:
1 histogram record
3 call-graph records
0 basic-block count records
other windows blank.
What's wrong?