ViewArticle

[Collapse]AQtime/viewarticle/43079/
 [Expand]General Information/viewarticle/43079/
 [Collapse]Getting Started/viewarticle/43449/
  [Expand]General Information/viewarticle/43505/
  [Collapse]Doing One Profiler Run/viewarticle/43454/
    1. Preparing an Application for Profiling/viewarticle/43474/
    2. Creating a Profiling Project/viewarticle/43073/
    3. Choosing What to Profile and When/viewarticle/42952/
    4. Selecting a Profiler/viewarticle/43338/
    5. Starting the Profiler Run/viewarticle/42961/
    6. Analyzing Profiling Results/viewarticle/43185/
 [Expand]Profiling Applications With AQtime/viewarticle/43100/
 [Expand]AQtime Reference/viewarticle/43097/
 [Expand]Development Tools Integration/viewarticle/43508/
 [Expand]Samples and Tutorials/viewarticle/43120/
 [Expand]Other Tools for Optimizing Your Applications/viewarticle/43008/
 [Expand]Licensing Guide/viewarticle/43331/
Updated: 3/2/2018 Applies To: AQtime 8 Rating: AverageAverageAverageAverageAverage 2 vote(s) Click to rate: PoorNot badAverageGoodExcellent
Getting Started - Doing One Profiler Run

2. Creating a Profiling Project

Your AQtime project is simply your current “work site” in AQtime. The project specifies the application and modules to profile, profiling parameters, profiling mode, etc. The project file also holds links to the files storing recent profiling results, that is, the project is also a set of available recent results.

You can create an AQtime project from within the Visual Studio IDE:

  1. Important: Launch Visual Studio as an administrator. To do this, right-click Visual Studio’s shortcut and select Run as Administrator from the context menu. You can also modify the shortcut properties so that Visual Studio is launched with administrator permissions automatically.

  2. To create a new AQtime project in Visual Studio, select File | New | Project from Visual Studio’s menu, press the New Project button on the Start page or select AQtime | Add AQtime Project from Visual Studio’s menu. This will call the New Project dialog.

  3. In the dialog:

    • Select AQtime Projects from the list on the left of the dialog and then click AQtime Project on the right.

    • Specify the project name, location and solution.

  4. Press OK.

Visual Studio will create a new AQtime project and display its contents in the Solution Explorer.

Once you have created a new project, you can add modules (EXE, DLL, OCX, etc.) to profile the project with. Once added, these modules are displayed in AQtime’s Setup panel. You can add such modules to the AQtime project during its creation. To add a new module to the project once it has already been created, select Add Module from the context menu of the Setup panel or from the Setup toolbar; or right-click the project in the Solution Explorer and select Add | Add Module from the context menu. To add a .NET assembly registered in the Global Assembly Cache (GAC) to the AQtime project, select Add Assembly from the context menu of the Setup panel or from the Setup toolbar; or right-click the project in the Solution Explorer and select Add | Add Assembly from the context menu. This will call the Add Assembly dialog, where you can select the desired assemblies. To add a web-page whose script you want to profile, select Add URL from the context menu of the Setup panel, from the Setup toolbar, or from the context menu of the Solution Explorer and enter the page address in the ensuing Add URL dialog.

If you add an AQtime project to an existing solution, you can use the Add Project Output dialog to choose which output modules of projects that exist in the solution you want to add to the newly created AQtime project. To call this dialog, right-click your AQtime project in the Solution Explorer and then select Add | Add Output from the context menu.

You can create an AQtime project from within the RAD Studio IDE:

  1. Important: Launch RAD Studio as an administrator. To do this, right-click RAD Studio’s shortcut and select Run as Administrator from the context menu. You can also modify the shortcut properties so that RAD Studio is launched with administrator permissions automatically.

  2. In RAD Studio, AQtime projects (.aqt files) are part of the AQtime project groups (.bdsproj files), which are simply containers for several AQtime projects. Before creating a new AQtime project you must first create and open an AQtime project group to which this project will belong.

    To create a new AQtime project group:

    • Right-click the root element in the Project Manager panel and select Add New Project from the context menu, or select File | New | Other or Project | Add New Project from RAD Studio’s menu. This will call the New Items dialog.

    • In the dialog, select Profiling from the list on the left of the dialog, click AQtime Project on the right and click OK.

    RAD Studio will create a new AQtime project group and display its contents in the Project Manager.

  3. To create a new AQtime project in the opened AQtime project group:

    • Select File | New | Other from RAD Studio’s menu. This will call the New Items dialog.

    • In the dialog, select Profiling from the list on the left of the dialog, click AQtime Module on the right and click OK.

RAD Studio will add a new AQtime project to the opened AQtime project group and display its contents in the Project Manager.

Once you have created a new AQtime project, you can add modules (EXE, DLL, OCX, etc.) to profile the project with. Once added, these modules are displayed in AQtime’s Setup panel. To add a new module to the project once it has already been created, select Add Module from the context menu of the Setup panel or from the Setup toolbar; or right-click your AQtime project in the Project Manager and select Add Module from the context menu. To add a .NET assembly registered in the Global Assembly Cache (GAC) to the AQtime project, select Add Assembly from the context menu of the Setup panel or from the Setup toolbar; or right-click your AQtime project in the Project Manager and select Add Assembly from the context menu. This will call the Add Assembly dialog, where you can select the desired assemblies.To add a web-page whose script you want to profile, select Add URL from the context menu of the Setup panel, from the Setup toolbar, or from the context menu of the Project Manager and enter the page address in the ensuing Add URL dialog.

To create a new project, select File | New Project from AQtime’s main menu. AQtime will create a new project. Once the project has been created, you can add modules to profile with it (EXE, DLL, OCX, etc.). To add a new module, select Add Module from the context menu of the Setup panel or from the Setup toolbar, or from the Project menu and then select the desired file using the subsequent Open File dialog. To add a .NET assembly registered in the Global Assembly Cache (GAC) to the AQtime project, select Add Assembly from the context menu of the Setup panel or from the Setup toolbar, or from the Project menu. This will call the Add Assembly dialog, where you can select the desired assemblies. To add the web page whose script you want to profile, select Add URL from the context menu of the Setup panel, from the Setup toolbar, or from the Project menu and enter the page address in the ensuing Add URL dialog.

An AQtime project can only contain 32-bit (x86) or 64-bit (x64) modules, but not both. The project cannot contain modules with different “bitness”. This behavior is caused by a Windows limitation that 32-bit modules can be loaded into a 32-bit process only and 64-bit modules can be loaded into 64-process only (you cannot load a 32-bit module to a 64-bit process). So, if you add a 64-bit module to your AQtime project, you can continue adding 64-bit modules only. If you add a 32-bit module, you can only add 32-bit modules. To change the “bitness” of the project, clear the modules list and then add the desired modules.

You can add as many modules, from as many folders, as you wish. The module that was added to the AQtime project first, will be the main module. This means that AQtime will launch this module when you start profiling. Other modules are not started by AQtime; they will be loaded by the main module. You can change the main module at any time by right-clicking the desired module and selecting Set as Active from the context menu. If the main module is a DLL or an OCX file, you have to specify a Host Application for your project so that AQtime can start profiling. The host application can be set in the Run Parameters dialog.

To save your new AQtime project, select File | Save from AQtime’s main menu.To save your new AQtime project, select File | Save from Visual Studio’s main menu.To save your new AQtime project, select File | Save from RAD Studio’s main menu. This will open the standard Save File dialog where you can specify the project file name. If you create a new project and do not save it, the results and profiling configuration will be lost upon closing the project. However, after you have saved a project to a file, the results and changes you make to the profiling configuration will be saved automatically (AQtime saves them upon closing the project or after you select the File | Save menu item).

By default, AQtime project files have the .aqt extension. To save an existing project under another name or extension, select File | Save As from AQtime’s menuVisual Studio’s menuRAD Studio’s menu.

After you have saved your project to a file, you can add this file to a source control system like Visual SourceSafe or CVS. AQtime is tightly integrated with source control systems, so you can add your project to a source control directly from AQtime. For complete information on how to do this, see Working with Source Control Systems.

To open an existing project in AQtime, select File | Open Project:

Upon selecting this menu item, AQtime will display the standard Open File dialog where you can select the desired AQtime project file name. Once your project is open in AQtime, you can see a list of all object modules and their routines in the left-hand pane of the Setup panel:

You can open an existing AQtime project in the Visual Studio in the same manner as you open any other Visual Studio project: just select File | Open | Project\Solution:

This will call the standard Open File dialog where you can select the desired AQtime project file name. After you open the project, you can see a list of all object modules and their routines in the left-hand pane of the Setup panel:

You can open an existing AQtime project in the RAD Studio in the same manner as you open any other RAD Studio project: just select File | Open Project:

This will call the standard Open File dialog where you can select the desired AQtime project file name. After you open the project, you can see a list of all object modules and their routines in the left-hand pane of the Setup panel:

See also
About Setup Panel | Integration With Source Control Systems


© 2018 SmartBear Software. All rights reserved.
Email Send feedback on this document