示例#1
0
 public static float GetCurrentCpuUsage()
 {
     return(PerfCounter.GetCPUCounter()
            .NextValue());
 }
示例#2
0
 public static long GetLargeObjectHeapSize()
 {
     return(PerfCounter.GetLargeObjectHeap()
            .NextSample()
            .RawValue);
 }
示例#3
0
 public static float GetTimeInGC()
 {
     return(PerfCounter.GetTimeInGc()
            .NextValue());
 }