Profiling Scripts Using Host Applications

Applies to AQTime 8.81, last modified on January 18, 2022

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).

  • Wait until these routines are executed and close the host application. AQTime will generate profiling results and display them in the Report and Summary panels.

See Also

Profiling Scripts
Profiling Scripts - Overview
Profiling Scripts - Prerequisites
Profiling Scripts in Internet Explorer 8 and Later
Profiling Scripts - Troubleshooting

Highlight search results