Sign in Join

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

Mailing lists / lazarus / 2011-06

Any profiler?

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Kostas Michalopoulos

Hi all,

Is there some sort of profiler i can use under Windows/Lazarus 0.9.30? I would prefer something like Mac OS X's Shark (ie. a sampling based profiler) if possible :-P.

I tried building the project with "Generate code for gprof" but it complained about missing libraries like c, gmon, cygwin, user32, kernel32, gcc, etc and beyond that gprof usually adds a lot of overhead that i would like to avoid.

Do you have anything in mind? I wonder how hard would it be to make Lazarus/FreePascal work with OpenWatcom's profiler (which, like Shark, is a sampling based profiler). The sampler seems to work but the profiler (they are two separate programs) cannot read the debugging symbols (most likely OW uses some other format for debugging symbols than FreePascal).

Kostas "Bad Sector" Michalopoulos

Reply by email

Graeme Geldenhuys
to Kostas Michalopoulos
Kostas Michalopoulos wrote
I tried building the project with "Generate code for gprof" but it complained about missing libraries like c, gmon, cygwin, user32,

Have never been able to get gprof support working either. Try valgrind (-gv parameter) instead. I believe there is a Free Pascal wiki page explain how to use valgrind support.

Alternatively you can also try 'fpprofiler' - a Free Pascal profiler implementation. I have had good success with fpprofiler in the past too. The Free Pascal wiki page has more details on fpprofiler.

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/

Reply by email