C# Class StopGuessing.DataStructures.MemoryUsageLimiter

Inheritance: IDisposable
Datei anzeigen Open project: Microsoft/StopGuessing Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
GenerationalReductionLoop ( CancellationToken cancellationToken ) : void
MemoryUsageLimiter ( double fractionToRemoveOnCleanup = 0.2, long hardMemoryLimit ) : System
ReduceMemoryUsage ( ) : void
ThresholdReductionLoop ( long hardMemoryLimit, CancellationToken cancellationToken ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

GenerationalReductionLoop() public method

public GenerationalReductionLoop ( CancellationToken cancellationToken ) : void
cancellationToken System.Threading.CancellationToken
return void

MemoryUsageLimiter() public method

public MemoryUsageLimiter ( double fractionToRemoveOnCleanup = 0.2, long hardMemoryLimit ) : System
fractionToRemoveOnCleanup double
hardMemoryLimit long
return System

ReduceMemoryUsage() public method

public ReduceMemoryUsage ( ) : void
return void

ThresholdReductionLoop() public method

public ThresholdReductionLoop ( long hardMemoryLimit, CancellationToken cancellationToken ) : void
hardMemoryLimit long
cancellationToken System.Threading.CancellationToken
return void