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