[fpc-devel] heaptrc

Graeme Geldenhuys graeme at mastermaths.co.za
Thu Nov 19 14:26:44 CET 2009


JoshyFun wrote:
> 
> on each run and in the development process and test you must manually
> open the file to know if something leaks (easy to forget).

Under any unix-type environment do the following in a console window...
Simply keep this console window open in one corner of your screen.

  $ tail -f <heaptrc_output_filename>

eg:
  $ tail -f /tmp/heaptrc.txt


This will now continuously show you the output of heaptrc.

Alternatively, always execute your applications from the command line
and simply let heaptrc output to stdout. On application exit you will
get a summary output and if memory leaks occured, the need information
for the leaks.


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/




More information about the fpc-devel mailing list