AQTime can profile in-browser and out-of-browser Silverlight applications. This topic explains how to profile Silverlight applications that run outside the browser.
To profile a Silverlight application with AQTime, there is no need to prepare the application in a special way.
Some preparations are required only if you need to profile individual source lines of your Silverlight application. In this case, you need to compile the application with debug information. See How AQTime Profilers Use Metadata and Debug Information for detailed information on how to do this.
Launch AQTime and create a new empty AQTime project.
Add the profiled application’s dll to the Modules pane.
Choose the elements to be profiled by adding them to areas or select Entire .NET Code or All Project Modules to profile all the routines.
Specify the profiling level.
Note that to profile the code of a Silverlight application by lines, the application must be compiled with debug information (see above).
If you install a Silverlight application from the Web, the application will not include debug information, so you can profile this application only at the routine level.
Select the Normal profiling mode on AQTime’s Standard toolbar.
Select the Normal profiling mode on Visual Studio’s AQTime toolbar.
Select the Normal profiling mode on RAD Studio’s AQTime Profiling Modes toolbar.
Choose Run > Parameters from AQTime’s main menu.Choose AQTime > Parameters from Visual Studio’s main menu.Choose AQTime > Parameters from RAD Studio’s menu. This will invoke the Run Parameters dialog.
In the Specify custom host application box, specify the path to SLLaucher.exe. SLLauncher is part of the Silverlight runtime and the tool that is used to run offline Silverlight applications.
In the Parameters edit box, specify the following parameters:
Click OK to save the changes and close the dialog.
Select the needed profiler from the Profilers drop-down list on the Standard toolbar. For a list of available profilers, see Supported Profilers.
Now, the project is ready for profiling.
Start the profiling in AQTime. AQTime will launch SLLauncher, which, in its turn, will run your Silverlight application.
|Profiling Silverlight applications by attaching a profiler to a running Silverlight application is currently not supported.|
Perform the needed actions over the application. AQTime will profile it.
To generate results, either close the application, or use the Get Results command. AQTime will display the profiling results in its panels.
If you profile your application with the Entire .NET Code (Routines only) area enabled, AQTime reports the results of Silverlight code profiling along with the profiling results of other CLR routines that were called from your application. To distinguish the Silverlight application’s routines among other .NET routines in the Report panel, use the Module Name column. Grouping the results by this column lets you quickly find the routines of your application.