C# Class NBench.Metrics.BenchmarkRun

Used to collect metrics for a given instance of a benchmark
Inheritance: IDisposable
Datei anzeigen Open project: petabridge/NBench Class Usage Examples

Public Methods

Method Description
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.

Private Methods

Method Description
Dispose ( bool isDisposing ) : void

Method Details

BenchmarkRun() public method

public BenchmarkRun ( IReadOnlyList measures, IReadOnlyList counters, IBenchmarkTrace trace ) : System
measures IReadOnlyList
counters IReadOnlyList
trace IBenchmarkTrace
return System

Dispose() public method

public Dispose ( ) : void
return void

Sample() public method

Sample all actively used benchmarks in this run
public Sample ( long elapsedTicks ) : void
elapsedTicks long
return void

ToReport() public method

Collect a final report for this BenchmarkRun
public ToReport ( System.TimeSpan elapsedTime ) : NBench.Reporting.BenchmarkRunReport
elapsedTime System.TimeSpan
return NBench.Reporting.BenchmarkRunReport

WithException() public method

Adds an Exception to this BenchmarkRun.
public WithException ( Exception ex ) : void
ex System.Exception The thrown while running the benchmark.
return void