Why AQTime slows execution even when profiling is not on, and can anything be done for it?

Posted by Antti Suni on Stack Overflow See other posts from Stack Overflow or by Antti Suni
Published on 2010-04-06T12:58:22Z Indexed on 2010/04/06 13:33 UTC
Read the original article Hit count: 480

Filed under:
|
|

Hi!

In AQTime for Delphi, it boasts to be very fast to get to the trouble spots by using areas and triggers etc. But it seems to me, that especially if you have very much code in the areas to profile, then the execution slows down dramatically even when the profiling is NOT on.

For example, if I want to profile a specific routine late in the program flow, but don't know what is called there, I'd think to put this routine only as a trigger and the initial status for threads as Off, and then choose "Full check by Routines/Lines". However, when I do this, the program execution slows down heavily already before the trigger routine has ever been hit.

For example if the "preparation flow" takes around 5 minutes without AQTime, then when I run it with profiling disabled, it already has been running for 30 minutes and still goes even when I know the trigger has not yet even been reached.

I know I can try to workaround this by reducing the amount of routines/lines profiled, but it is not really a good solution for me, since I'd like to profile all of them once I get to the actual trigger routine.

Also another, often better workaround is to start the application without AQTime and then use Attach to Process after the "preparation flow" has finished, but this works well only when the execution pauses in GUI in the proper place or otherwise provides a suitable time frame for doing the attaching. In all cases this is not the case.

Any comments on why this is so and is there anything else to do than just try to reduce the code from the areas or attach later to the process?

© Stack Overflow or respective owner

Related posts about delphi

Related posts about aqtime