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.