C# Класс NLight.Diagnostics.MemoryPressureManager

Manages the garbage collector memory pressure. See GC.AddMemoryPressure(long) and GC.RemoveMemoryPressure(long).
Показать файл Открыть проект

Открытые методы

Метод Описание
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