Sign in Join

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

Mailing lists / fpc-pascal / 2005-10

log memory usage at runtime

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Marc Santhoff

Hi,

can the memory manager of fpc be watched at runtime?

I'd like to log allocation and release of memory chunks by a GUI program under suspicion of leaking memory. This seems to be a problem only under some unknown circumstances...

At least the total mem at start and end of on run should be logged.

TIA,
Marc

Reply by email

Peter Vreman
to Marc Santhoff
you wrote 9 lines
Hi, can the memory manager of fpc be watched at runtime? I'd like to log allocation and release of memory chunks by a GUI program under suspicion of leaking memory. This seems to be a problem only under some unknown circumstances... At least the total mem at start and end of on run should be logged.

You can create and install your own memory manager that wraps the original memory manager. just like the heaptrc unit does.

Peter

Reply by email

Marc Santhoff
to Peter Vreman
Peter Vreman wrote 13 lines
At 16:35 27-10-2005, you wrote: >Hi, > >can the memory manager of fpc be watched at runtime? > >I'd like to log allocation and release of memory chunks by a GUI program >under suspicion of leaking memory. This seems to be a problem only >under some unknown circumstances... > >At least the total mem at start and end of on run should be logged. You can create and install your own memory manager that wraps the original memory manager. just like the heaptrc unit does.

I'll have a look at that, Thank you!

Marc

Reply by email