dotTrace Web Help

Before you start profiling a Silverlight application, make sure that:

  • Silverlight 4 Developer Runtime or higher is installed. You can get the runtime at the official Microsoft Silverlight website.
  • A website with your Silverlight application has started using the Visual Studio Development Server or any other web server.

To profile a Silverlight application
  1. Start dotTrace as standalone application.
  2. Do one of the following:
    • On the menu bar, choose File | Profile. The Profile dialog box opens. Select Silverlight Application, then click OK or just double-click Silverlight Application.
    • Click Profile on the Home tab. Click Silverlight Application in the list.
    The Profiler Configuration dialog box opens. For more information, see Profiler Configuration.
  3. By default, your application is profiled on the local computer. If you want to start profiling on a remote computer, do one of the following:
    • Click Profile on remote computer to specify a remote agent url and thereby define what remote agent to use.
    • Select a remote host in the Host drop-down list and click it.
    For more information, see Profiling Remote Applications.
  4. Do one of the following:
    • Enter URL of your Silverlight application in the Url text box.
    • Leave the Url text box blank. Enter URL in the address bar of the browser.
  5. Select a browser that should be started (or restarted) in the Browser drop-down list, or leave the default settings intact.
  6. Select a profiling mode in the Profiling type drop-down list. For more information, see Choosing the Right Profiling Mode.


    If you want to profile your Silverlight application in line-by-line mode, pay attention, that you should specify the path to .pdb files and check whether appropriate .dll files locate in the same directory. You can do this using the Edit Symbol Search Policy dialog box.
  7. Specify what kind of timer you want to use by clicking an item in the Measure drop-down list. For more information, see Choosing the Right Time Measurement Method.
  8. If the Start profiling immediately check box is selected, dotTrace Performance starts gathering performance data immediately after you click Run and close the current dialog. Otherwise, dotTrace Performance waits until you press Start Profiling in the dotTrace Performance Controller window. For more information, see Launching and Controlling the Profiling Process.
  9. Optionally, click the arrow to display and configure additional settings, such as High accuracy, Enable inlining, Merge threads with equal names etc.
    • Select the High accuracy check box to take into account time spent in profiler itself by taking more time samples.
    • Clear the Enable inlining check box to disable JIT-inlining in order to get call stacks that closely resemble the structure of application's source code.
    • Select the Merge threads with equals names check-box and as a result get the performance information for all threads with the same name under a single thread node in Call Tree and Threads Tree views.
    • Click Edit Filters to define in advance what functions should be filtered out and what should be profiled line by line.
    • Click Edit Symbol Search Policy to specify locations where the profiler looks for debugging information. For more information, see Edit Symbol Search Policy.
    • Select the Use profiler API check box to allow you to control profiling directly from the code of the profiled application. For more information, see Advanced Profiling Using dotTrace API.
  10. Click Run.

See Also