Correct use of “% Time in GC” performance counter
问题 I am trying to get the "% Time in GC" performance counter in ".NET CLR Memory" category programmatically. According to the description in PerfMon, % Time in GC is the percentage of elapsed time that was spent in performing a garbage collection (GC) since the last GC cycle. This counter is usually an indicator of the work done by the Garbage Collector on behalf of the application to collect and compact memory. This counter is updated only at the end of every GC and the counter value reflects