Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2007-11

gprof setup on windows

3 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Darius Blaszijk

I would like to profile my code on windows. I tried searching the wiki, but without much success on how to do that on windows. Can anyone explain me in a few words how this can be done?

Kind regards, Darius

Reply by email

Graeme Geldenhuys
to Darius Blaszijk
Darius Blaszijk wrote
I would like to profile my code on windows. I tried searching the wiki, but without much success on how to do that on windows. Can anyone explain me in a few words how this can be done?

Did you ever find any information. I would like to profile some of my code as well and need the same information.

I compiled my application and all packages with the '-pg' compiler option. Run the application and section that needs profiling and it generated a very small gprof.out file (186 bytes). I then ran gprof as follows:
gprof gridspeed.exe gprof.out > output.txt

As expected from the small gprof.out file, there is no useful information in the output.txt file. :-(

Anybody got some idea of what I did wrong?

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Peter Vreman
Show quoted text 18 lines
On 02/11/2007, Darius Blaszijk wrote: > I would like to profile my code on windows. I tried searching the wiki, > but without much success on how to do that on windows. Can anyone > explain me in a few words how this can be done? Did you ever find any information. I would like to profile some of my code as well and need the same information. I compiled my application and all packages with the '-pg' compiler option. Run the application and section that needs profiling and it generated a very small gprof.out file (186 bytes). I then ran gprof as follows: gprof gridspeed.exe gprof.out > output.txt As expected from the small gprof.out file, there is no useful information in the output.txt file. :-( Anybody got some idea of what I did wrong?

Using 2.3.1 for win32 and gprof from cygwin works for me.

Peter

Reply by email