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