profile ... where is gmon.out

General FreeBASIC programming questions.
Post Reply
nedman47
Posts: 62
Joined: Dec 05, 2006 15:35

profile ... where is gmon.out

Post by nedman47 »

I compiled my program with the -profile switch. The exe gets bigger and slower, but I cannot find gmon.out!
zerospeed
Posts: 227
Joined: Nov 04, 2005 15:29

Post by zerospeed »

gmon.out is generated when you exit you appliation.

maybe its getting slower because you have loops that constantly execute some instructions.

The idea of profiling is give your program a full run (testing everything) and then exit to check the collected data (gmon.out).

later you need gprof to generate textual information about the collecting process.

HTH,

Zero
nedman47
Posts: 62
Joined: Dec 05, 2006 15:35

Post by nedman47 »

when i exit the program, there is no gmon.out anywhere on the disk
yetifoot
Posts: 1710
Joined: Sep 11, 2005 7:08
Location: England
Contact:

Post by yetifoot »

Are you using a CVS version of FreeBASIC?

gprof profiling is only in the CVS, not the normal FB versions, do you have a profile.txt made anywhere?

If you just click on the executable, it may be made in a directory other than the executables, on linux I get it in my home directory, I'd imagine its the same for windows, it would get put in your documents and settings\user or similar
nedman47
Posts: 62
Joined: Dec 05, 2006 15:35

Post by nedman47 »

i might have figured it out ... i was exiting with SYSTEM. i changed that to END, compiled with -profile, ran the program, and got a file called PROFILE.TXT.
Post Reply