C# 클래스 NLight.Diagnostics.MemoryPressureManager

Manages the garbage collector memory pressure. See GC.AddMemoryPressure(long) and GC.RemoveMemoryPressure(long).
파일 보기 프로젝트 열기: slorion/nlight

공개 메소드들

메소드 설명
AddMemoryPressure ( long bytesAllocated ) : void

Informs the runtime of a large allocation of unmanaged memory that should be taken into account when scheduling garbage collection.

RemoveMemoryPressure ( long bytesAllocated ) : void

Informs the runtime that unmanaged memory has been released and no longer needs to be taken into account when scheduling garbage collection.

비공개 메소드들

메소드 설명
PressureCheck ( ) : void

메소드 상세

AddMemoryPressure() 공개 정적인 메소드

Informs the runtime of a large allocation of unmanaged memory that should be taken into account when scheduling garbage collection.
public static AddMemoryPressure ( long bytesAllocated ) : void
bytesAllocated long The incremental amount of unmanaged memory that has been allocated.
리턴 void

RemoveMemoryPressure() 공개 정적인 메소드

Informs the runtime that unmanaged memory has been released and no longer needs to be taken into account when scheduling garbage collection.
public static RemoveMemoryPressure ( long bytesAllocated ) : void
bytesAllocated long The amount of unmanaged memory that has been released.
리턴 void