Show / Hide Table of Contents

    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
    Implements
    IBenchmarkOutput
    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()
    Namespace: NBench.Reporting.Targets
    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
    Type Name Description
    System.Action<BenchmarkRunReport, System.Boolean> runAction
    System.Action<BenchmarkFinalResults> benchmarkAction
    System.Action<System.String> writeLineAction

    ActionBenchmarkOutput(Action<BenchmarkRunReport>, Action<BenchmarkFinalResults>)

    Declaration
    public ActionBenchmarkOutput(Action<BenchmarkRunReport> runAction, Action<BenchmarkFinalResults> benchmarkAction)
    Parameters
    Type Name Description
    System.Action<BenchmarkRunReport> runAction
    System.Action<BenchmarkFinalResults> benchmarkAction

    Fields

    DefaultBenchmarkResultsAction

    Declaration
    public static Action<BenchmarkFinalResults> DefaultBenchmarkResultsAction
    Field Value
    Type Description
    System.Action<BenchmarkFinalResults>

    DefaultRunAction

    Declaration
    public static Action<BenchmarkRunReport, bool> DefaultRunAction
    Field Value
    Type Description
    System.Action<BenchmarkRunReport, System.Boolean>

    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
    Type Name Description
    BenchmarkFinalResults results

    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
    Type Name Description
    BenchmarkRunReport report
    System.Boolean isWarmup

    Implements

    IBenchmarkOutput
    Back to top Copyright © 2015-2020 Petabridge™, LLC