AQTime allows you to control the process of collecting profiling information during profiling sessions. You can temporarily disable collecting data at any point during the application run and enable it at a later time. For example, you can start a profiling session with profiling disabled and enable profiling right before the application’s potential hotspots. This way you can reduce the amount of profiling results collected and only collect information on the application operations you are interested in. You can also disable profiling after having captured the results in order to analyze them while your application continues running.
Note that when you disable profiling, your application continues running. If you want to suspend both the profiling session and the application execution, you should pause the profiling session. See Pausing and Resuming Profiling.
To start a profiling session with profiling disabled
-
Press the Enable/Disable Profiling button on the Standard toolbar, so that it turns into .
-
Press the Enable/Disable Profiling button on the AQTime toolbar, so that it turns into .
-
Select AQTime > Disable Profiling from the main menu of Embarcadero RAD Studio.
-
Start a profiler run, as described in Starting and Stopping Profiling.
Your application will be started with profiling turned off. You can turn profiling on by toggling the Enable/Disable Profiling setting as described below.
To disable profiling
To temporarily disable collecting profiling data, do any of the following:
-
Press the Enable/Disable Profiling button on the Standard toolbar, so that it turns into .
-
Select Run > Disable Profiling in AQTime’s main menu.
To temporarily disable collecting profiling data, do any of the following:
-
Press the Enable/Disable Profiling button on the AQTime toolbar, so that it turns into .
-
Select AQTime > Disable Profiling from Visual Studio’s main menu.
To temporarily disable collecting profiling data, select AQTime > Disable Profiling from the main menu of Embarcadero RAD Studio.
Your profiled application will continue running, but AQTime will not collect profiling information from it.
To enable profiling
To turn on profiling, do one of the following:
-
Press the Enable/Disable Profiling button on the Standard toolbar.
-
Select Run > Enable Profiling in AQTime’s main menu.
To turn on profiling, do one of the following:
-
Press the Enable/Disable Profiling button on the AQTime toolbar.
-
Select AQTime > Enable Profiling in Visual Studio’s main menu.
To turn on profiling, select AQTime > Enable Profiling from the main menu of Embarcadero RAD Studio.
AQTime will resume collecting profiling information from the application. It will add it to the previously collected results.
In addition to using the Enable/Disable Profiling button, you can set up triggers and actions to automatically pause and resume profiling when a specific function is called in your application. You can also control profiling activities directly from your application’s code by using the AQTime profiling API. For more information, see Controlling Profiling From Application Code.
See Also
Running a Profiling Session
Starting and Stopping Profiling
Pausing and Resuming Profiling
Using Triggers
Using Actions
Controlling Profiling From Application Code