查看Silverlight CPU占用情况
查看Silverlight CPU占用情况
Silverlight 3 提供了一个很方便的类“Analytics”来帮助我们开发者来时刻查看CPU的占用情况。
Name | Description | |
---|---|---|
AverageProcessLoad | Gets how much of the CPU this process is using across all cores averaged together. | |
AverageProcessorLoad | Gets how much CPU processing is being used across all cores averaged together. | |
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效果。
编译运行: