Пример #1
0
        public void Stop()
        {
            EndGCInfo.Collect();

            EndDate = DateTime.UtcNow;

            GCInfoResult = new GarbageCollectorResult
            {
                TotalGen0 = EndGCInfo.Gen0 - StartGCInfo.Gen0,
                TotalGen1 = EndGCInfo.Gen1 - StartGCInfo.Gen1,
                TotalGen2 = EndGCInfo.Gen2 - StartGCInfo.Gen2,
                TotalKiloBytesOfMemory = EndGCInfo.TotalBytesOfMemory - StartGCInfo.TotalBytesOfMemory
            };
        }
Пример #2
0
 public TelemetryCollector()
 {
     StartGCInfo  = new GarbageCollectorInfo();
     EndGCInfo    = new GarbageCollectorInfo();
     GCInfoResult = new GarbageCollectorResult();
 }