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
Afficher le fichier Open project: petabridge/NBench

Méthodes publiques

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

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

public Error ( Exception ex, string message ) : void
ex System.Exception
message string
Résultat void

Error() public méthode

public Error ( string message ) : void
message string
Résultat void

FinishBenchmark() public méthode

public FinishBenchmark ( string benchmarkName ) : void
benchmarkName string
Résultat void

MarkdownBenchmarkOutput() public méthode

public MarkdownBenchmarkOutput ( string outputDirectory ) : System
outputDirectory string
Résultat System

SkipBenchmark() public méthode

public SkipBenchmark ( string benchmarkName ) : void
benchmarkName string
Résultat void

StartBenchmark() public méthode

public StartBenchmark ( string benchmarkName ) : void
benchmarkName string
Résultat void

Warning() public méthode

public Warning ( string message ) : void
message string
Résultat void

WriteBenchmark() public méthode

public WriteBenchmark ( BenchmarkFinalResults results ) : void
results BenchmarkFinalResults
Résultat void

WriteLine() public méthode

public WriteLine ( string message ) : void
message string
Résultat void

WriteRun() public méthode

public WriteRun ( BenchmarkRunReport report, bool isWarmup = false ) : void
report BenchmarkRunReport
isWarmup bool
Résultat void