#785 – Using the Visual Profiler Tool

Once you install the WPF Performance Suite, you can use the tool to help improve the performance of your application.

In addition to the Perforator tool, the Performance Suite includes the Visual Profiler tool, which is designed to help you profile your application at run-time.  Profiling involves monitoring your application at run-time to look at the performance aspects of individual elements.  This will help you figure out the location of any performance bottlenecks.

To run the Visual Profiler, start the WPF Performance Suite and click on the Visual Profiler tab.  Start your WPF application and then click Select Process under the Actions menu to select your process.

Once you connect the Visual Profiler to your application, you’ll see a variety of information, including:

  • A visual tree that indicates CPU time spent for layout of an element and its children
  • Measure/Arrange CPU usage for selected element
  • Application CPU usage breakdown

785-001

Advertisements

#784 – Using the Perforator Tool to Analyze WPF Application Performance

Once you install the WPF Performance Suite, you can use the tool to analyze the performance of your application.

After starting the WPF Performance Suite, click on the Perforator tab.

784-001

The next step is to run your WPF application.  Once the application is running, under the Actions menu, click on Select Process.

784-002

Select your application from the list and click the Select button.

784-003

The Perforator app will begin collecting data from your running WPF application and you’ll see various data displayed in the graphs.

784-004

Perforator is showing you the rendering performance of your application.  If nothing is being updated, both the Frame Rate and Dirty Rect Addition Rate graphs will report 0.  If you are updating something in you application, you generally want the frame rate to be as high as possible and the Dirty Rect Addition Rate to be as low as possible.

#783 – Downloading and Installing the WPF Performance Suite

There is a set of tools, known as the WPF Performance Suite, that you can use to analyze the performance of your WPF applications.

To get access to the WPF Performance Suite, you start by installing the Windows SDK 7.1 .  During the install, check the Windows Performance Toolkit option.

783-002

Once installed, you can find the WPF Performance Suite in the start screen under the Microsoft Windows Performance Toolkit section.

783-003

 

The first time that you run the WPF Performance Suite, you’ll see an Add Tools dialog.  Check the options for Perforator and Visual Profiler.

783-004

 

When the performance suite starts up, you’ll see an application with tabs labeled Perforator and Visual Profiler.

783-005