C# Class NBench.Reporting.Targets.MarkdownBenchmarkOutput

IBenchmarkOutput implementation that writes output for each completed benchmark to a markdown file. Uses FileNameGenerator to generate a file name unique to each test AND the time it was run.
Inheritance: IBenchmarkOutput
ファイルを表示 Open project: petabridge/NBench

Public Methods

Method Description
Error ( Exception ex, string message ) : void
Error ( string message ) : void
FinishBenchmark ( string benchmarkName ) : void
MarkdownBenchmarkOutput ( string outputDirectory ) : System
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

Private Methods

Method Description
AddMarkdownTableHeaderRow ( StringBuilder sb, int columnWidth = MaxColumnSize, int columns = 6 ) : void
BuildPerSecondsStatTable ( IEnumerable metrics, int columnWidth = MaxColumnSize ) : string
BuildRunTable ( IReadOnlyList runs, int columnWidth = MaxColumnSize ) : string
BuildStatTable ( IEnumerable metrics, int columnWidth = MaxColumnSize ) : string

Method Details

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

MarkdownBenchmarkOutput() public method

public MarkdownBenchmarkOutput ( string outputDirectory ) : System
outputDirectory string
return System

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