Starting and Stopping Profiling

Applies to AQTime 8.81, last modified on January 18, 2022

Once you have set up an AQTime project, specified the application you want to profile and selected the desired profiler, you can start a profiling session. During profiling, you run operations in your application (for instance, those where you suspect a bottleneck) and AQTime captures profiling information for them. You can end profiling by closing the application and then analyze the profiling results.

To start profiling

Before you start profiling, you should perform several checks. For more information, see Starting a Profiler Run.

  • Do any of the following:

    • Press the Run button on the Standard toolbar.

    • Select Run > Run from the main menu of AQTime.

    • Press F5 (the shortcut can be changed via the Customize Keyboard dialog).

    • Select AQTime > Run from Visual Studio’s main menu.

    • Click the Run button or select Debug > Run while one of AQTime’s panels is active or selected in the Solution Explorer.

    • Select AQTime > Run With Profiling from the main menu of Embarcadero RAD Studio.

    • Click the Run button on the Debug toolbar or select the Run > Run menu item while one of AQTime’s panels is active or selected in the Project Manager.

  • If the Show profiler options when profiling starts option is selected for the given profiler, the Profiler Options dialog will appear.

    In the dialog, specify the profiling settings and click Run.

Your application is launched (if needed) and AQTime starts profiling.

To start profiling an already running application

If the application that you want to profile is already running, you can start profiling it by attaching to its process. For more information, see Attaching to Process. Note that static profilers (that is, profilers that analyze applications without running them) do not support the “attach-to-process” feature.

To stop profiling

AQTime automatically finishes the profiling session and generates results when you exit the application being profiled. This is the preferred way of ending the profiling session.

You can also stop profiling by doing any of the following:

  • Click the Terminate button on the Standard toolbar.

  • Select Run > Terminate from the main menu of AQTime.

  • Press Shift+F5 (the shortcut can be changed via the Customize Keyboard dialog).

    Note: The shortcut set for the Terminate command does not work during the profiling if the profiled application’s window is active. To use the shortcut, activate the AQTime window.
  • Click Terminate on the AQTime toolbar.

  • Select AQTime > Terminate from Visual Studio’s main menu.

  • Select AQTime > Terminate from RAD Studio’s main menu.

AQTime will end the profiling session and close the profiled application (regardless of whether it was launched from AQTime or you attached AQTime to it).

AQTime does not automatically generate profiling results when you use the Terminate command. To collect results before terminating the profiling session, use the Get Results command. See Getting Results During Profiling.

See Also

Running a Profiling Session
Starting the Profiler Run
Attaching to Process
Pausing and Resuming Profiling
Enabling and Disabling Profiling
Setting Profiler Options Before the Run

Highlight search results