I try use FastMM4 to tracking bottleneck in allocating memory.

I try use FastMM4 to tracking bottleneck in allocating memory.
I was inspired by this Primož movie:

https://www.youtube.com/watch?v=p-5mJyXvmrc

When I turn off FullDebugMode and turn on LogLockContention then I get compiler error:

[dcc32 Error] FastMM4.pas(3274): E2003 Undeclared identifier: 'DebugFillMem'

But when I turn on FullDebugMode then code with Collector is ommited:

function FastGetMem()
[...]
{$ifdef LogLockContention}
{$ifndef FullDebugMode} <--- this is correct?
if Assigned(ACollector) then
begin
GetStackTrace(@LStackTrace, StackTraceDepth, 1);
ACollector.Add(@LStackTrace[0], StackTraceDepth);
end;
{$endif}
{$endif}

How to correct check bottleneck in memory usage?
https://www.youtube.com/watch?v=p-5mJyXvmrc

Comments

Post a Comment