C# 클래스 NBench.Metrics.BenchmarkRun

Used to collect metrics for a given instance of a benchmark
상속: IDisposable
파일 보기 프로젝트 열기: petabridge/NBench 1 사용 예제들

공개 메소드들

메소드 설명
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