C# Class NBench.Reporting.Targets.ActionBenchmarkOutput

An IBenchmarkOutput designed to run BenchmarkAssertions against the data we collect on each run and in the final benchmark.
Inheritance: IBenchmarkOutput
ファイルを表示 Open project: petabridge/NBench Class Usage Examples

Public Properties

Property Type Description
DefaultBenchmarkResultsAction Action
DefaultRunAction bool>.Action
DefaultWriteLineAction Action

Public Methods

Method Description
ActionBenchmarkOutput ( bool>.Action runAction = null, Action benchmarkAction = null, Action writeLineAction = null ) : System
ActionBenchmarkOutput ( Action runAction, Action benchmarkAction ) : System
Error ( Exception ex, string message ) : void
Error ( string message ) : void
FinishBenchmark ( string benchmarkName ) : void
SkipBenchmark ( string benchmarkName ) : void
StartBenchmark ( string benchmarkName ) : void
Warning ( string message ) : void
WriteBenchmark ( BenchmarkFinalResults results ) : void
WriteLine ( string message ) : void
WriteRun ( BenchmarkRunReport report, bool isWarmup = false ) : void

Method Details

ActionBenchmarkOutput() public method

public ActionBenchmarkOutput ( bool>.Action runAction = null, Action benchmarkAction = null, Action writeLineAction = null ) : System
runAction bool>.Action
benchmarkAction Action
writeLineAction Action
return System

ActionBenchmarkOutput() public method

public ActionBenchmarkOutput ( Action runAction, Action benchmarkAction ) : System
runAction Action
benchmarkAction Action
return System

Error() public method

public Error ( Exception ex, string message ) : void
ex System.Exception
message string
return void

Error() public method

public Error ( string message ) : void
message string
return void

FinishBenchmark() public method

public FinishBenchmark ( string benchmarkName ) : void
benchmarkName string
return void

SkipBenchmark() public method

public SkipBenchmark ( string benchmarkName ) : void
benchmarkName string
return void

StartBenchmark() public method

public StartBenchmark ( string benchmarkName ) : void
benchmarkName string
return void

Warning() public method

public Warning ( string message ) : void
message string
return void

WriteBenchmark() public method

public WriteBenchmark ( BenchmarkFinalResults results ) : void
results BenchmarkFinalResults
return void

WriteLine() public method

public WriteLine ( string message ) : void
message string
return void

WriteRun() public method

public WriteRun ( BenchmarkRunReport report, bool isWarmup = false ) : void
report BenchmarkRunReport
isWarmup bool
return void

Property Details

DefaultBenchmarkResultsAction public_oe static_oe property

public static Action DefaultBenchmarkResultsAction
return Action

DefaultRunAction public_oe static_oe property

public static Action DefaultRunAction
return bool>.Action

DefaultWriteLineAction public_oe static_oe property

public static Action DefaultWriteLineAction
return Action