如何使FastMM日志文件更具可读性

时间:2016-08-02 12:22:34

标签: delphi memory-management delphi-xe5 fastmm

我最近开始使用FastMM,现在我想知道是否可以将FastMM日志文件配置为更具可读性,以便它可以指示内存泄漏的确切位置,例如指定实际单位和功能/行号,在大多数情况下我会得到类似......

A memory block has been leaked. The size is: 20

This block was allocated by thread 0xE7C, and the stack trace (return addresses) at the time was:

    5005995A [System.pas][System][System.@GetMem][4316]
    5005E99F [System.pas][System][System.TObject.NewInstance][15447]
    5005F292 [System.pas][System][System.@ClassCreate][16757]
    23A606 [FireDAC.Stan.Util.pas][FireDAC.Stan.Util][FireDAC.Stan.Util.TFDBuffer.Create][1516]
    4C46D3 [FireDAC.Phys.IBWrapper][Phys.Ibwrapper.TIBDatabase.$bctr$qqrp29Firedac.Phys.Ibwrapper.TIBEnvp14System.TObject]
    4C4730 [FireDAC.Phys.IBWrapper][Phys.Ibwrapper.TIBDatabase.$bctr$qqrp29Firedac.Phys.Ibwrapper.TIBEnvpvp14System.TObject]
    4CEF79 [FireDAC.Phys.IBBase][Phys.Ibbase.TFDPhysIBConnectionBase.InternalConnect$qqrv]
    E4A553 [FireDAC.Phys.pas][FireDAC.Phys][FireDAC.Phys.TFDPhysConnection.ConnectBase][3161]
    E4A60E [FireDAC.Phys.pas][FireDAC.Phys][FireDAC.Phys.TFDPhysConnection.DoConnect][3187]
    E4B11C [FireDAC.Phys.pas][FireDAC.Phys][FireDAC.Phys.TFDPhysConnection.Open][3361]
    34A14C [FireDAC.Comp.Client.pas][FireDAC.Comp.Client][FireDAC.Comp.Client.TFDCustomConnection.DoInternalLogin][3642]

The block is currently used for an object of class: TFDBuffer

这并不能真正满足我的需要。

0 个答案:

没有答案