简体   繁体   中英

How can I access performance counters of garbage collector programmatically?

I have an app written in .Net Compact Framework 3.5 & C#, running on Windows Embedded Compact 7, I want to know how often and how much time GC is taking.

I have platform builder remote tools but I can't find anything which shows GC counters.

Is there a way to access them programmatically in C# or C++ etc ?

Is there any tool which can help me finding these counters ?

Any help is appreciated.

Remote Performance Monitor (RPM) will show you GC counts live, so you can get those numbers from it. Unfortunately there's no SDK or API for it. This blog article is a little more in-depth on the tool.

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