简体   繁体   中英

How to access .Net performance counters in compact framework?

I have an application created by using .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 .

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?

An example with small code snippet will be great...

I don't think there is an equivalent. But you can install the PerformanceCounter from:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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