[fpc-devel]Improvements for heaptrc.pp

Mattias Gaertner nc-gaertnma at netcologne.de
Wed Sep 4 14:06:11 CEST 2002


Hi,

Here are some suggestions to improve heaptrc.pp.

1. getmem_cnt, freemem_cnt, getmem_size, freemem_size, getmem8_size, freemem8_size should 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.


Mattias Gaertner




More information about the fpc-devel mailing list