There are three ways to profile script code with AQtime. They vary in the module that is added to the project: a host application, a script file or a URL. The technique that uses host applications is the simplest. It does not require that additional parameters be specified for the profiler. When profiling starts, the host application is launched and you can load any script you want. However, the weak point of this technique is that you cannot select the script routines to be profiled via the Setup panel. That is, AQtime will profile all routines that were executed. This technique cannot be used for Windows Script Host, since it has no user interface to open script files.
To profile a script via its host application, do the following:
Add the host application’s executable (for example, iexplore.exe) to the Modules pane.
This can be done by selecting Add Module from the Setup toolbar or context menu, or by choosing the Project > Add module menu item.
Make sure your code is selected for profiling:
Add the desired scripts to the Modules pane and include them in one of the including areas.
-- or --
Check Entire Script Code in the Code to Profile pane.
To learn more, see Controlling What to Profile.
|Note:||If you use Internet Explorer 8 or later as a host application, AQtime will profile scripts at routine level regardless of which level you select.|
Select the desired profiler from the dropdown list on the Standard toolbar.
Select the desired profiler from the Profiler dropdown list in the AQtime menu.
Select the desired profiler from the Current Profiler submenu of the AQtime menu.
Press Run on the Standard toolbar or select Run > Run from AQtime’s main menu to start profiling.
Select AQtime > Run from Visual Studio’s main menu to start profiling.
Select AQtime > Run With Profiling from Embarcadero RAD Studio’s main menu to start profiling.
AQtime will launch the chosen host application. In the application, open the script and call the routines you want to profile. For example, open the desired web page in the browser and do the actions needed to run the desired routine (click on links, buttons, menus and so on).