Included in your AQTime installation is a sample program (Coverage) which shows how the Coverage profiler can pinpoint bottlenecks and bugs. There is a version of Coverage for each supported compiler.
Managed code
Microsoft Visual Studio 2005 Projects
<AQTime Samples>\Managed\VS2005\Coverage\CS - Microsoft Visual C# .NET
<AQTime Samples>\Managed\VS2005\Coverage\VC - Microsoft Visual C++ .NET
<AQTime Samples>\Managed\VS2005\Coverage\VB - Microsoft Visual Basic .NET
Microsoft Visual Studio 2013 Projects
<AQTime Samples>\Managed\VS2013\Coverage\CS - Microsoft Visual C# .NET
<AQTime Samples>\Managed\VS2013\Coverage\VC - Microsoft Visual C++ .NET
<AQTime Samples>\Managed\VS2013\Coverage\VB - Microsoft Visual Basic .NET
Unmanaged code
<AQTime Samples>\Unmanaged\Coverage\VB - Microsoft Visual Basic 6.0
<AQTime Samples>\Unmanaged\Coverage\VC2013 - Microsoft Visual C++ (Visual Studio 2013 project)
<AQTime Samples>\Unmanaged\Coverage\VC2005 - Microsoft Visual C++ (Visual Studio 2005 project)
<AQTime Samples>\Unmanaged\Coverage\BCB - Borland C++Builder
<AQTime Samples>\Unmanaged\Coverage\Delphi - Borland Delphi
Note: | You can also open Visual Studio samples 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:
-
Open the application in AQTime.
-
Enable All Project Modules (Collect info about lines) and disable Entire .NET Code in the Setup panel. (Review About Areas for details of defining areas and selecting the code to profile.)
-
Select Coverage Profiler from the Profilers drop-down list on the Standard toolbar.
Select Coverage Profiler from the Profilers drop-down list displayed in the AQTime menu of Microsoft Visual Studio.
Select Coverage 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 that is displayed on AQTime’s Standard toolbar.
Select Normal from the Profiling Mode drop-down list box that is displayed on Visual Studio’s AQTime toolbar.
Click the Normal button on RAD Studio’s AQTime Profiling Modes toolbar.
-
Verify that the Enable/Disable Profiling item on the Standard toolbarin the AQTime menu of Visual Studioin the AQTime menu of RAD Studio is pressed since AQTime only profiles 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 RAD Studio’s AQTime menu.
-
Depending on the Show Again Flags options, AQTime may call the Profiler Options dialog. In the dialog, press Run to start profiling.
-
AQTime will launch the profiled application. Wait until the application window is displayed on the screen.
-
Enter 1 and press Execute. Close the resulting message box.
-
Enter 2 and press Execute. Close the resulting message box.
-
Finally, close the Coverage application and review profiler results.