Esempio n. 1
0
 public static HeapState GetHeapStateDelta()
 {
     tempHeapState = lastHeapState;
     return(HeapState.GetHeapDelta(tempHeapState, GetHeapStateAfter()));
 }
Esempio n. 2
0
 public static HeapState GetHeapDelta(HeapState before, HeapState after)
 {
     return(new HeapState(after.GCCount - before.GCCount, after.TotalMemoryAllocated - before.TotalMemoryAllocated));
 }
Esempio n. 3
0
 public static void ResetBeforeHeapState()
 {
     _before = HeapUtility.GetHeapStateBefore();
 }