简体   繁体   English

以编程方式操纵性能监视器

[英]Manipulate the Performance Monitor Programmatically

Is it possible to programmatically add existing performance counters to the performance monitor (perfmon.exe) and display them as a report view? 是否可以以编程方式将现有性能计数器添加到性能监视器(perfmon.exe)并将其显示为报告视图? if so, how can it be done in C#? 如果是这样,如何在C#中完成?

Import the PLA library by browsing the file in your .net Project (%windir%\\System32\\PLA.dll (Vista or later)) 通过浏览.net项目中的文件(%windir%\\ System32 \\ PLA.dll(Vista或更高版本))来导入PLA库。

check reference here: http://msdn.microsoft.com/en-us/library/windows/desktop/aa372631(v=vs.85).aspx 请在此处检查参考: http : //msdn.microsoft.com/zh-cn/library/windows/desktop/aa372631(v=vs.85).aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM