Re: [fpc-pascal] Best practice for getting heap usage summary

2012-01-19 Thread Jonas Maebe
On 19 Jan 2012, at 10:38, Mark Morgan Lloyd wrote: Mattias Gaertner wrote: Maybe you mean GetFPCHeapStatus http://lazarus-ccr.sourceforge.net/docs/rtl/system/getfpcheapstatus.html There is also the Delphi compatible GetHeapStatus, but only for 32bit. Yes, I was assuming that was necessary

Re: [fpc-pascal] Best practice for getting heap usage summary

2012-01-19 Thread Mark Morgan Lloyd
Mattias Gaertner wrote: On Thu, 19 Jan 2012 09:06:46 + Mark Morgan Lloyd wrote: What is considered "best practice" for getting a summary of heap usage, in a single-threaded program which doesn't need to be Delphi-compatible? In Delphi programs that have had to run for an extended period

Re: [fpc-pascal] Best practice for getting heap usage summary

2012-01-19 Thread Mattias Gaertner
On Thu, 19 Jan 2012 09:06:46 + Mark Morgan Lloyd wrote: > What is considered "best practice" for getting a summary of heap usage, > in a single-threaded program which doesn't need to be Delphi-compatible? > > In Delphi programs that have had to run for an extended period I've used > Allo

[fpc-pascal] Best practice for getting heap usage summary

2012-01-19 Thread Mark Morgan Lloyd
What is considered "best practice" for getting a summary of heap usage, in a single-threaded program which doesn't need to be Delphi-compatible? In Delphi programs that have had to run for an extended period I've used AllocMemCOunt() and AllocMemSize(). What's the best way of getting somethin