Class ActionBenchmarkOutput
An IBenchmarkOutput designed to run BenchmarkAssertions against the data we collect on each run and in the final benchmark.
Inheritance
System.Object
ActionBenchmarkOutput
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: NBench.dll
Syntax
public sealed class ActionBenchmarkOutput : IBenchmarkOutput
Constructors
ActionBenchmarkOutput(Action<BenchmarkRunReport, Boolean>, Action<BenchmarkFinalResults>, Action<String>)
Declaration
public ActionBenchmarkOutput(Action<BenchmarkRunReport, bool> runAction = null, Action<BenchmarkFinalResults> benchmarkAction = null, Action<string> writeLineAction = null)
Parameters
ActionBenchmarkOutput(Action<BenchmarkRunReport>, Action<BenchmarkFinalResults>)
Declaration
public ActionBenchmarkOutput(Action<BenchmarkRunReport> runAction, Action<BenchmarkFinalResults> benchmarkAction)
Parameters
Fields
DefaultBenchmarkResultsAction
Declaration
public static Action<BenchmarkFinalResults> DefaultBenchmarkResultsAction
Field Value
DefaultRunAction
Declaration
public static Action<BenchmarkRunReport, bool> DefaultRunAction
Field Value
DefaultWriteLineAction
Declaration
public static Action<string> DefaultWriteLineAction
Field Value
Type |
Description |
System.Action<System.String> |
|
Methods
Error(Exception, String)
Declaration
public void Error(Exception ex, string message)
Parameters
Type |
Name |
Description |
System.Exception |
ex |
|
System.String |
message |
|
Error(String)
Declaration
public void Error(string message)
Parameters
Type |
Name |
Description |
System.String |
message |
|
FinishBenchmark(String)
Declaration
public void FinishBenchmark(string benchmarkName)
Parameters
Type |
Name |
Description |
System.String |
benchmarkName |
|
SkipBenchmark(String)
Declaration
public void SkipBenchmark(string benchmarkName)
Parameters
Type |
Name |
Description |
System.String |
benchmarkName |
|
StartBenchmark(String)
Declaration
public void StartBenchmark(string benchmarkName)
Parameters
Type |
Name |
Description |
System.String |
benchmarkName |
|
Warning(String)
Declaration
public void Warning(string message)
Parameters
Type |
Name |
Description |
System.String |
message |
|
WriteBenchmark(BenchmarkFinalResults)
Declaration
public void WriteBenchmark(BenchmarkFinalResults results)
Parameters
WriteLine(String)
Declaration
public void WriteLine(string message)
Parameters
Type |
Name |
Description |
System.String |
message |
|
WriteRun(BenchmarkRunReport, Boolean)
Declaration
public void WriteRun(BenchmarkRunReport report, bool isWarmup = false)
Parameters
Implements