Sign in Join

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

Mailing lists / fpc-pascal / 2007-10

gprof

7 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

Mattias Gaertner

It seems the gprof option -pg is still there, but it does not work. What are the plans for this feature?
What else can be used as profiler for fpc?

Mattias

Jonas Maebe
to Mattias Gaertner
Mattias Gaertner wrote
It seems the gprof option -pg is still there, but it does not work.

On which OS? It's known not to work on Linux currently (for the same reason that shared library initialization doesn't work).

What are the plans for this feature? What else can be used as profiler for fpc?

On which OS?

Jonas

Mattias Gaertner
to Jonas Maebe
Show quoted text 7 lines
On 02 Oct 2007, at 00:43, Mattias Gaertner wrote: > It seems the gprof option -pg is still there, but it does not work. On which OS? It's known not to work on Linux currently (for the same reason that shared library initialization doesn't work).

Thanks for the info.

> What are the plans for this feature? > What else can be used as profiler for fpc? On which OS?

Linux.

Mattias

Jonas Maebe
to Mattias Gaertner
Mattias Gaertner wrote 6 lines
>> What are the plans for this feature? >> What else can be used as profiler for fpc? > > On which OS? Linux.

Callgrind/Cachegrind is probably your best bet (and more detailed than gprof).

Jonas

Graeme Geldenhuys
to Jonas Maebe: On which OS? It's known not to work on Linux currently (for the same reason that shared…

Has the '-pg' (gprof) compiler option issues ever been resolved under Linux?

After running my application the gprof.out file is only 186 bytes big with no profiling information.

Regards,
- Graeme -

Jonas Maebe wrote 24 lines
On 02 Oct 2007, at 00:43, Mattias Gaertner wrote: > It seems the gprof option -pg is still there, but it does not work. On which OS? It's known not to work on Linux currently (for the same reason that shared library initialization doesn't work). > What are the plans for this feature? > What else can be used as profiler for fpc? On which OS? Jonas _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Jonas Maebe
to Graeme Geldenhuys
Graeme Geldenhuys wrote
Has the '-pg' (gprof) compiler option issues ever been resolved under Linux?

I' not sure, but I don't think so. Under Linux, you can however also use valgrind with the cachegrind backend for profiling (but in this case ensure that your program and the units you want to profile are compiled with -gv, and that none of the used units is compiled with plain -g/-gl)

Jonas

Graeme Geldenhuys
to Jonas Maebe
Jonas Maebe wrote 6 lines
I' not sure, but I don't think so. Under Linux, you can however also use valgrind with the cachegrind backend for profiling (but in this case ensure that your program and the units you want to profile are compiled with -gv, and that none of the used units is compiled with plain -g/-gl)

Thanks Jonas.... I'm trying 'valgrind' now. Just reading up on what information is stored in the generate text output file I've now go. Only thing I can guess so far is that big numbers are bad. :-)

Regards,
- Graeme -

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