C# Class Binarysharp.Benchmark.Components.GcPerformanceOptimizer

Class that creates a timeframe during which the performance of the current process is optimized by reducing the probability that the Garbage Collector runs.
Inheritance: IPerformanceOptimizer
Exibir arquivo Open project: ZenLulz/BenchShark Class Usage Examples

Protected Properties

Property Type Description
IsSectionActivated bool
OldGcLatencyMode GCLatencyMode

Public Methods

Method Description
EnterOptimizedSection ( ) : void

Enters a section during which the performance of the current process is optimized.

Why use SustainedLowLatency instead of LowLatency: http://www.infoq.com/news/2012/03/Net-403.

LeaveOptimizedSection ( ) : void

Leaves a section during which the performance of the current process is optimized.

Method Details

EnterOptimizedSection() public method

Enters a section during which the performance of the current process is optimized.
Why use SustainedLowLatency instead of LowLatency: http://www.infoq.com/news/2012/03/Net-403.
public EnterOptimizedSection ( ) : void
return void

LeaveOptimizedSection() public method

Leaves a section during which the performance of the current process is optimized.
public LeaveOptimizedSection ( ) : void
return void

Property Details

IsSectionActivated protected_oe property

Defines whether the section is activated.
protected bool IsSectionActivated
return bool

OldGcLatencyMode protected_oe property

The latency mode of the Garbage Collector before this object alterates it.
protected GCLatencyMode OldGcLatencyMode
return GCLatencyMode