FastMM4
                                
                                 FastMM4 copied to clipboard
                                
                                    FastMM4 copied to clipboard
                            
                            
                            
                        Problem with LogLockContention
See post: https://plus.google.com/u/0/108264621339439827681/posts/NGXDpCcjjUZ
quote: "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?"