[fpc-devel]Improvements for heaptrc.pp

Peter Vreman peter at freepascal.org
Wed Sep 4 14:11:51 CEST 2002

> Hi,
> Here are some suggestions to improve heaptrc.pp.
> 1. getmem_cnt, freemem_cnt, getmem_size, freemem_size, getmem8_size, freemem8_size
be readable via functions in the interface. Very useful for optimization.
> 2. QuickTrace = false is very slow, but also very useful. It would be nice to have a
procedure, that can be called at any time, and that does a big check. For example:
> procedure CheckHeap;
> var p: pointer;
> begin
>   QuickTrace:=false;
>   GetMem(p,4);
>   FreeMem(p);
>   QuickTrace:=true;
> end;
> 3. Move QuickTrace into the interface part.

The quicktrace improvement can only be done for the heaptrc available in 1.1. That version
supports extra information that can have different sizes

More information about the fpc-devel mailing list