C# Класс NBench.Metrics.BenchmarkRun

Used to collect metrics for a given instance of a benchmark
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
BenchmarkRun ( IReadOnlyList measures, IReadOnlyList counters, IBenchmarkTrace trace ) : System
Dispose ( ) : void
Sample ( long elapsedTicks ) : void

Sample all actively used benchmarks in this run

ToReport ( System.TimeSpan elapsedTime ) : NBench.Reporting.BenchmarkRunReport

Collect a final report for this BenchmarkRun

WithException ( Exception ex ) : void

Adds an Exception to this BenchmarkRun.

Приватные методы

Метод Описание
Dispose ( bool isDisposing ) : void

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

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

public BenchmarkRun ( IReadOnlyList measures, IReadOnlyList counters, IBenchmarkTrace trace ) : System
measures IReadOnlyList
counters IReadOnlyList
trace IBenchmarkTrace
Результат System

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

public Dispose ( ) : void
Результат void

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

Sample all actively used benchmarks in this run
public Sample ( long elapsedTicks ) : void
elapsedTicks long
Результат void

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

Collect a final report for this BenchmarkRun
public ToReport ( System.TimeSpan elapsedTime ) : NBench.Reporting.BenchmarkRunReport
elapsedTime System.TimeSpan
Результат NBench.Reporting.BenchmarkRunReport

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

Adds an Exception to this BenchmarkRun.
public WithException ( Exception ex ) : void
ex System.Exception The thrown while running the benchmark.
Результат void