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

Mark Morgan Lloyd markMLl.fpc-pascal at telemetry.co.uk
Thu Jan 19 10:06:46 CET 2012


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 
something comparable for FPC- THeapStatus.TotalAllocated etc.?

-- 
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]



More information about the fpc-pascal mailing list