This topic explains how to prepare applications created with Embarcadero Delphi 2010 for AQtime. To learn how to prepare applications created with other Delphi versions, see Compiler Settings for Native Applications.
To prepare a Delphi 2010 application for AQtime, you must first ensure that it includes debug information. Follow these steps:
Open your Delphi project in Delphi 2010.
Activate the configuration that you use to build the debug version of your application. To do this, right-click the Project_Name | Build Configurations | Debug Configuration node in the Project Manager and select Activate from the context menu.
Choose Project | Options from the main menu to open the Project Options dialog.
In the Build Configuration combo box, select your debug configuration. This will quickly load the settings used for debug builds.
To set the compiler options, select the Delphi Compiler| Compiling category from the tree view on the left of the dialog.
Set the Stack frames option to True in the Code generation group.
To include symbolic debug information, set the Debug information option to True in the Debugging group.
To view the variables, which are local to procedures and functions, set the Local symbols option to True in the Debugging group.
If you want to profile VCL classes, for example, TDataset, set the Use debug .dcus option to True in the Debugging group. Otherwise, AQtime will only be able to profile the classes that are defined in your application.
Switch to the Delphi Compiler | Linking category and set the Debug information option to True:
If you do not want to use the Allocation profiler, skip this step.
Note that the point of the Allocation profiler is not performance. Its point is to track memory allocations and deallocations. To do this, the profiler requires access to the basic VCL objects (TObject and TInterfacedObject). Therefore, the easiest way to provide this access is to turn off the Build with runtime packages option in the Packages category:
To add a module to an AQtime project, press Add Module on the Setup toolbar or select it from the Setup context menu.
Once you have set the compiler and linker options correctly, rebuild your application and it will be ready for profiling. If you are profiling an ActiveX control or a COM server however, you should register its “debug” version in the system (See Profiling COM Applications).
When your application is ready for release, remember to recompile it without debug information to reduce the application size.
Nevertheless, AQtime is compatible with AQtrace and supports profiling of applications that use AQtrace for error reporting.
© 2012 SmartBear Software. All rights reserved.