简体   繁体   English

如何在紧凑的框架中访问.Net性能计数器?

[英]How to access .Net performance counters in compact framework?

I have an application created by using .Net Compact Framework 3.5. 我有一个使用.Net Compact Framework 3.5创建的应用程序。

In this application I want to log information about various counters eg GC time ( how much time GC took to perform ) , memory status and so on . 在这个应用程序中,我想记录有关各种计数器的信息,例如GC时间(GC执行的时间),内存状态等。

In the full .Net version we have PerformanceCounter class, but what is equivalent in the .Net compact framework or how can I find these performance counters? 在完整的.Net版本中,我们有PerformanceCounter类,但是.Net紧凑框架中的等价物是什么,或者我如何找到这些性能计数器?

An example with small code snippet will be great... 一个小代码片段的例子会很棒......

I don't think there is an equivalent. 我认为没有相应的东西。 But you can install the PerformanceCounter from: 但您可以从以下位置安装PerformanceCounter:

http://www.microsoft.com/en-us/download/details.aspx?id=15267 http://www.microsoft.com/en-us/download/details.aspx?id=15267

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

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