[fpc-devel] profiling on win32

Peter Vreman peter at freepascal.org
Sun Jan 22 12:24:43 CET 2006

At 19:18 21-1-2006, you wrote:
>Hi everybody.
>Did someone manage to enable profiling on win32?
>I linked with libc.a, libgmon.a, libgcc.a and libkernel32.a from cygwin but
>it fails on startup.
>If I start the -pg compiled program I see:
>monstartup: out of memory
>Then program runs without problems, and at the end I see a couple of access
>violations from gprof libraries code:
>      2 [main] testprogram 1316 handle_exceptions: Exception:
>    242 [main] testprogram 1316 open_stackdumpfile: Dumping stack trace to
>I couldn't find anything on fpc website: faqs read "Profiling is supported".
>I had it working on linux but I'm not able to have it working under win32


Note: gprof is only supported for cygwin


More information about the fpc-devel mailing list