[fpc-pascal] Monitoring memory usage

Alan Mead cubrewer at yahoo.com
Wed Nov 10 04:06:18 CET 2004


Is there an easy way to monitor memory allocations during a program
run (for debugging purposes)?  

Ideally, this would be some sort of hook into the memory manager
rather than something like gdb because the program runs for hours.  

A list of the calling subroutine (or line number) and the amount
allocated/deallocated, that would be quite helpful.  

I think I can trace most of the memory being allocated manually but
I'd like an auditing mechanism to verify.

Thanks!

-Alan




More information about the fpc-pascal mailing list