C# Класс 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.
Наследование: IPerformanceOptimizer
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
IsSectionActivated bool
OldGcLatencyMode GCLatencyMode

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

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

Описание методов

EnterOptimizedSection() публичный Метод

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
Результат void

LeaveOptimizedSection() публичный Метод

Leaves a section during which the performance of the current process is optimized.
public LeaveOptimizedSection ( ) : void
Результат void

Описание свойств

IsSectionActivated защищенное свойство

Defines whether the section is activated.
protected bool IsSectionActivated
Результат bool

OldGcLatencyMode защищенное свойство

The latency mode of the Garbage Collector before this object alterates it.
protected GCLatencyMode OldGcLatencyMode
Результат GCLatencyMode