Use the Performance Monitor to track the performance of your application. The monitor provides multiple real-time performance metrics with the visual familiarity of the one in Windows Task Manager.

To display the Performance Monitor, select Performance Monitor from the View menu.

Figure 1:Performance Monitor

Basics

The Performance Monitor automatically starts when a Silverlight application has been loaded. The toolbar lists the supported performance metrics. The visibility of a performance metric can be toggled by selecting the toolbar buttons.

In order to conserve resources, monitoring is automatically paused when the Performance Monitor pane is hidden.

Memory Monitor

The Memory Monitor displays the number of bytes currently thought to be allocated. The value is achieved by querying GC.GetTotalMemory in the Silverlight AppDomain. The Memory Monitor is a convenient tool to identify memory leaks.

Note:

The total amount of memory consumed by a particular Silverlight application includes unmanaged memory allocated for images, video, etc. as well. This unmanaged memory is not tracked by the Memory Monitor.

Process Monitor

The Process Monitor tracks how much of the CPU the Silverlight application is using across all cores averaged together. The value is achieved by querying the Analytics.AverageProcessLoad property in the Silverlight AppDomain.

Processor Monitor

The Processor Monitor tracks how much CPU processing is being used across all cores averaged together. The value is achieved by querying the Analytics.AverageProcessorLoad property in the Silverlight AppDomain.

Frame Rate Monitor

The Frame Rate Monitor reports the actual number of frames that are rendered per second. The actual frame rate that Silverlight content renders depends on system load performance and other factors.

See Also