log memory usage at runtime

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

log memory usage at runtime

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


_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: log memory usage at runtime

Peter Vreman
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.


Peter

_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: log memory usage at runtime

Marc Santhoff
Am Donnerstag, den 27.10.2005, 16:40 +0200 schrieb Peter Vreman:

> 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


_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal