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
Afficher le fichier Open project: ZenLulz/BenchShark Class Usage Examples

Protected Properties

Свойство Type Description
IsSectionActivated bool
OldGcLatencyMode GCLatencyMode

Méthodes publiques

Méthode 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 méthode

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
Résultat void

LeaveOptimizedSection() public méthode

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

Property Details

IsSectionActivated protected_oe property

Defines whether the section is activated.
protected bool IsSectionActivated
Résultat bool

OldGcLatencyMode protected_oe property

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