Forum Discussion

ClayShannon's avatar
14 years ago

Two hundred thousand calls to GetStackTrace()?

In trying to track down what is the causing the performance "issues" in my app, I downloaded a trial version of AQTime. It shows that in just a few seconds of my app running, GetStackTrace (in FastMM4.pas) had a hit count of 187438.



This seems excessive, although the time spent in it was only a total of 0.32 seconds.



Thoughts?

  • Hello Clay,





    Not sure if this is normal or not - probably, a better place to find this out is one of the FastMM support resources:

    http://sourceforge.net/projects/fastmm/support





    From the profiling perspective, if the total execution time of this function is just a small fraction of the relevant operation's execution time, you should probably ignore this one for the moment. Anyway, even if you manage to reduce the number of calls, the maximum time you win can't be more that 0.32 seconds. Is it worth while spending your time on this? You could probably start the optimization from other points where you can win more time with less efforts.





    Good Luck with the optimization!