In order for AQtime to be able to profile your code, it must either launch the profiled application, or attach to it at runtime. This way, AQtime will be able to monitor events and function calls that will occur in your application.
To enhance browsing security, modern web browsers use several processes per each browser process. For instance, Microsoft Internet Explorer 8 uses an individual process for each tab. In order for AQtime to be able to profile your code, it needs to know the browser’s process to which this code is loaded.
To determine the process to be profiled, AQtime waits for certain notifications from the browser. These notifications “tell” about the process to be profiled. Once AQtime receives these notifications, it attaches to the appropriate process of the browser and profiles it.
However, in some cases, the browser does not send notifications, so AQtime is unable to determine the process to be profiled. In this case, you can use the “Attach-to-Process” command to connect AQtime to the needed process. The drawback of this solution is that you must know the name of the needed process.
If you do not know to which process to attach, try using the Consider the browser to be a single process setting of AQtime. When this setting is disabled (default), AQtime uses browser notifications to determine the process to be profiled. When the setting is enabled, AQtime considers the browser uses only one process - the process that is launched from AQtime. The entire procedure includes the following steps:
Switch your web browser to one-process mode. For detailed information on how to do this, see the browser documentation. For instructions for Microsoft Internet Explorer version 8 and higher, see Profiling Scripts - Prerequisites.
Configure your AQtime project so that AQtime launches a browser process. You can do this by adding the browser’s executable as the main module to the project, or by specifying the browser executable as a host application in the Run Parameters dialog.
Enable AQtime’s Consider the browser to be a single process option. To find it, select Options > Options from AQtime’s main menu and then choose the General > General Preferences group in the ensuing Options dialog.select Tools > Options from the main menu of Visual Studio and then choose the AQtime > General > General Preferences group in the ensuing Options dialog.select AQtime > Options from the main menu of Embarcadero RAD Studio.
|Important: If you enable the setting, you must ensure the browser uses only one process and it is launched from AQtime. Enabling the setting, but ignoring two other requirements is meaningless.|
|Note:||By default, it is recommended to start profiling with the setting disabled. You can enable the option if AQtime is unable to profile your code loaded to the browser process.|