查看Silverlight CPU占用情况

 查看Silverlight CPU占用情况

Silverlight 3 提供了一个很方便的类“Analytics”来帮助我们开发者来时刻查看CPU的占用情况。
 
 
  Name Description
Public property AverageProcessLoad Gets how much of the CPU this process is using across all cores averaged together.
Public property AverageProcessorLoad Gets how much CPU processing is being used across all cores averaged together.
Public property GpuCollection Gets a collection of GpuInformation objects which each include details taken from a video driver. The collection is useful for multi-adapter cases.

这里有一个很简单的例子。分析一下我的上一篇的WriteableBitmap Follower效果。

 
编译运行:
 
 

posted @ 2009-08-17 17:14  王喆(nasa)  阅读(1818)  评论(2编辑  收藏  举报