For easy access, the AQtime item can be added to the Tools menu of Borland Delphi and C++Builder. Once this is done, selecting SmartBear AQtime 8 from the Tools menu in the development tool will launch AQtime, compile the current application with debug information and load it in AQtime. The AQtime installation program automatically adds the SmartBear AQtime 8 menu item to the Tools menu. Below is an explanation of how you can do this manually:
Open your development tool (Delphi or C++Builder).
Select Tools > Configure Tools from Delphi’s (C++Builder’s) main menu to open the Tools Options dialog.
Press Add to open the Tool Properties dialog.
In the dialog:
Specify the file name and path to the AQtime.exe file in the Program edit box. You can either type the name and path or press Browse and locate AQtime.exe on your hard drive using the ensuing Open File dialog.
In the Parameters box, specify the following macros and command-line arguments:
$TDW $EXENAME /searchproject
This will instruct your IDE to launch AQtime by compiling the current program with debug information and then will pass the exe file name and command-line parameters to AQtime.
Type SmartBear AQtime 8 in the Title edit box.
Press OK to close the dialog.
The described approach can be applied to all the versions of Delphi (including Borland Delphi 2005 and Delphi for .NET) and C++Builder.
The described approach will not work for DLL projects. That is, to profile a dynamic link library, you will have to launch AQtime and create a project in it manually.