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
Set Internet Explorer as the default browser on your local computer.
Open a solution in Visual Studio.
In the Solution Explorer window, right-click the startup project, then click Properties. The Properties window opens.
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.
In the main menu, choose.
Optionally, change the profiling settings.
Click Start. Your XBAP application will be opened in Internet Explorer and you will be able to collect snapshots.
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
After you collect the data, either close the profiled application or detach the profiler using the Detach button in the controller window.