将 PerfRawData 值转换为执行数据 -WMI
我需要将 PagesPersec 值从 Win32_PerfRawData_PerfOS_Memory 转换为 PerfFormatted 数据值。如何将 PerfRaw 数据值从 WMI 性能计数器转换为 PerfFormatted 数据值。是否有 Windows 推荐的标准公式。
I need to convert PagesPersec value from Win32_PerfRawData_PerfOS_Memory to PerfFormatted Data value .How to convert PerfRaw data values from WMI Perfomance counters to PerfFormatted Data values .Is there Standard Formula available recommended by Windows.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要的公式取决于 CounterType ...参见
http://msdn.microsoft.com/en- us/library/aa392761(v=VS.85).aspx
要开始使用,请查看
The formula you need depends on the CounterType ... see
http://msdn.microsoft.com/en-us/library/aa392761(v=VS.85).aspx
to get started, have a look at http://msdn.microsoft.com/en-us/library/aa394597.aspx
这里回答太长了。有一篇非常好的文章,其中包含示例 http://msdn.microsoft.com/en -us/library/ms974615.aspx
简而言之:这取决于计数器类型。对于某些计数器,我可以只读取(磁盘可用空间)并需要根据两个请求进行计算,一个请求比另一个请求晚一点,例如:
It is too long to answer here. There is a very good article with samples http://msdn.microsoft.com/en-us/library/ms974615.aspx
In a brief: it depends on the counter type. For some counters it can me just read (disk free space) and come require calculation based on two requests one a bit later than another, for example: