Profiling Scripts Located on Web Pages

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 (web page). Using a web page is a better way of adding a script file to your project. It allows you to profile scripts right on web pages. A page can be on the Internet, on a local network or on a local computer. If a remote URL is specified, the corresponding page is copied to a temporary folder on your computer. AQTime retrieves information from HTML, ASP, PHP and other pages that contain <script> tags. If some script snippet does not define a routine name, then the results will be reported as <Global Scope of [URL]>.

Note: Starting from version 8, Internet Explorer does not support VBScript code profiling. You can profile only web scripts written in JScript.

To profile a web script, follow the instructions below:

  • Press the Add URL button on the Modules pane, or select Add URL from the pane’s context menu. This will call the Add URL to Project dialog.

  • Specify the desired web page in the dialog and press OK.

  • Once the page is added, AQTime retrieves information about available script routines. Thus, you can choose the elements to be profiled.

  • Ensure that Normal is currently chosen in the Profiling Mode dropdown list box and select Run > Parameters from the main menuAQTime > Parameters from Visual Studio’s menuAQTime > Parameters from Developer Studio’s menu to call the Run Parameters dialog.

  • In the dialog, specify the executable of Internet Explorer as the host application. You can enter the executable’s path in the Specify custom host application editor or select Internet Explorer or Default Web Browser (if Internet Explorer is your default browser) from the editor’s Select generic host application drop-down list. Press OK to close the dialog.

  • 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. The browser will be launched automatically.

  • Select AQTime > Run from Visual Studio’s main menu to start profiling. The browser will be launched automatically.

  • Select AQTime > Run With Profiling from Embarcadero RAD Studio’s main menu to start profiling. The browser will be launched automatically.

  • In the browser, enter the page’s URL in the address bar to navigate to the page. Typically, web page scripts are executed upon opening. However, sometimes, to call the desired routine you may need to perform some specific actions: highlight elements, select menus, interact with the page’s controls and so on.

  • Wait for the routine(s) to finish and close the browser. AQTime will generate the 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