C# Class NBench.Metrics.BenchmarkRun

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

Méthodes publiques

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

Méthode Description
Dispose ( bool isDisposing ) : void

Method Details

BenchmarkRun() public méthode

public BenchmarkRun ( IReadOnlyList measures, IReadOnlyList counters, IBenchmarkTrace trace ) : System
measures IReadOnlyList
counters IReadOnlyList
trace IBenchmarkTrace
Résultat System

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Sample() public méthode

Sample all actively used benchmarks in this run
public Sample ( long elapsedTicks ) : void
elapsedTicks long
Résultat void

ToReport() public méthode

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

WithException() public méthode

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