[Lazarus] heaptrc - Is it even worth using?
Martin
lazarus at mfriebe.de
Mon Oct 5 18:53:32 CEST 2009
Just one thing in case you don't know already. There is a package
"leakview" (it's included in lazarus, but not installed by default (afaik))
Once installed , it appears in the tools menu, and you can load the
leak-trace output. it will display similar like the stack view, allowing
you to click the lines and jump to the code.
That should save some time.
Martin
Lee Jenkins wrote:
>
> Does anyone else have any trouble reading heaptrc output? The only
> thing that I can see of use is that it tells me there /is/ a leak.
> However, trying to figure out where it is according to heaptrc output
> seems more difficult and time consuming that searching through the code.
>
> I'm not criticizing per se, just frustrated that I've spend 40 mins
> looking at a heaptrc output file with still no clue as to where the
> leak may be.
>
> Heap dump by heaptrc unit
> 4669 memory blocks allocated : 1093920/1110888
> 4621 memory blocks freed : 1092756/1109608
> 48 unfreed memory blocks : 1164
> True heap size : 360448 (112 used in System startup)
> True free heap : 355808
> Should be : 356368
> Call trace for block $030FFC70 size 45
> $0040734F
> $005E9916 TTIOIDGENERATORGUID__ASSIGNNEXTOID, line 489 of
> M:/lazarus/components/tiOPF2/Core/tiOIDGUID.pas
> $005CFA38 TTIOBJECT__CREATENEW, line 2036 of
> M:/lazarus/components/tiOPF2/Core/tiObject.pas
> $005CFAF5 TTIOBJECT__CREATENEW, line 2042 of
> M:/lazarus/components/tiOPF2/Core/tiObject.pas
> $004237AF TFLEXOBJECTMAPPING__REGISTERPROPERTY, line 259 of
> M:/lazarus/projects/flexserver/src/flex_persistence.pas
> $00423293 TMAPPINGREADER__REGISTERMAPPINGS, line 128 of
> M:/lazarus/projects/flexserver/src/flex_mapping_reader.pas
> $00422EBB TMAPPINGREADER__LOADMAPPINGS, line 66 of
> M:/lazarus/projects/flexserver/src/flex_mapping_reader.pas
> $00422C86 TFORM1__BUTTON1CLICK, line 40 of main_form.pas
More information about the Lazarus
mailing list