User forums > Using Code::Blocks
Trables with gprof
(1/1)
s79:
I compile this code
--- 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();
}
}
--- End code ---
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?
TDragon:
Did you forget "Execute TestGProf.exe"?
s79:
Yes.
I think troubles with MinGW? but not understand whatever.
Navigation
[0] Message Index
Go to full version