dotTrace 2024.1 Help

Profile XBAP Application

XBAP combines features of both a Web application and a rich-client application. Such application can be deployed to a Web server and started from Internet Explorer. Despite the complex deployment scheme, using dotTrace you still can profile them.

To profile XBAP application

  1. Set Internet Explorer as the default browser on your local computer.

  2. Open a solution in Visual Studio.

  3. In the Solution Explorer window, right-click the startup project, then click Properties. The Properties window opens.

  4. Click the Debug tab, then click Start external program. Enter the full path to the PresentationHost.exe file, or click the ellipsis button to open the Select File dialog and browse to the file.

  5. From the main menu, choose Extensions | ReSharper | Profile | Run Startup Configuration Performance Profiling....

  6. Optionally, change the profiling settings.

  7. Click Start. Your XBAP application will be opened in Internet Explorer and you will be able to collect snapshots.

  8. Go through a particular workflow in your application (if you want to evaluate its performance) or reproduce a particular performance issue. Collect snapshots using the Get Snapshot button in the profiling controller window. Learn more about how to control the profiling session

  9. After you collect the data, either close the profiled application or detach the profiler using the Detach button in the controller window.

  10. Analyze the collected snapshots in the dotTrace Viewer.

Last modified: 21 March 2024