Sampling Profiler Tutorial: 1 - Generating Data

Applies to AQTime 8.81, last modified on November 27, 2020

To demonstrate how to use the Sampling profiler to pinpoint application bottlenecks, we will use a sample application, Cycles, installed with AQTime.

<AQTime Samples>\Unmanaged\Performance\BCB  -  Borland C++Builder

<AQTime Samples>\Unmanaged\Performance\Delphi  -  Borland Delphi

<AQTime Samples>\Unmanaged\Performance\VB  -  Microsoft Visual Basic 6.0

<AQTime Samples>\Unmanaged\Performance\VC2013  -  Microsoft Visual C++ (Visual Studio 2013 project)

<AQTime Samples>\Unmanaged\Performance\VC2005  -  Microsoft Visual C++ (Visual Studio 2005 project, can also be opened and compiled in later versions of Visual Studio)

On Windows Vista and later, AQTime samples are located in the <Users>\Public\Documents\AQTime 8 Samples folder. On other operating systems, the samples reside in the <Documents and Settings>\All Users\Documents\AQTime 8 Samples folder.

To profile this example with AQTime, do the following:

  • Load the sample application in AQTime.

  • Select Sampling Profiler from the Profilers drop-down list on the Standard toolbar.

    Select Sampling Profiler from the Profilers drop-down list displayed in the AQTime menu of Microsoft Visual Studio.

    Select Sampling Profiler from the Current Profiler submenu displayed in the AQTime menu of Embarcadero RAD Studio.

  • Select Normal from the Profiling Mode drop-down list box displayed on AQTime’s Standard toolbar.

    Select Normal from the Profiling Mode drop-down list box displayed on Visual Studio’s AQTime toolbar.

    Click the Normal button on RAD Studio’s AQTime Profiling Modes toolbar.

  • Make sure that both the All Project Modules check box and the corresponding Collect info about lines radio button are selected in the Setup panel. Review About Areas for the details of defining areas and selecting the code to profile.

  • Make sure that the Enable/Disable Profiling button on the Standard toolbarin the AQTime menu of Visual Studioin the AQTime menu of RAD Studio is pressed since AQTime profiles only when this button is pressed.

  • Press Run on the Standard toolbar.

    Select Run from Visual Studio’s AQTime menu, or press Visual Studio’s Run button while any of AQTime panels is active.

    Select Run With Profiling from Embarcadero RAD Studio’s AQTime menu.

  • Since the Sampling Profiler option in the Show Again Flags option page is enabled by default, AQTime will call the Profiler Options dialog where you can set profiler options before profiling starts. Set Samples per second to 1500. Click Run to start profiling.

  • AQTime will launch the profiled application. Wait until the application's window is displayed on screen.

  • In Cycles, enter 10 and then press Execute. Wait while Cycles performs a series of actions.

  • Close the application and review the profiling results.

In the next step we will analyze the profiling results.

Prev     Next

See Also

Sampling Profiler - Overview

Highlight search results