Class InProcessToolchain
A toolchain to run the benchmarks in-process.
Implements
Namespace: BenchmarkDotNet.Toolchains.InProcess
Assembly: BenchmarkDotNet.dll
Syntax
[Obsolete("Please use BenchmarkDotNet.Toolchains.InProcess.NoEmit.* classes")]
public sealed class InProcessToolchain : IToolchain
Constructors
InProcessToolchain(Boolean)
Initializes a new instance of the InProcessToolchain class.
Declaration
public InProcessToolchain(bool logOutput)
Parameters
Type | Name | Description |
---|---|---|
Boolean | logOutput |
|
InProcessToolchain(TimeSpan, BenchmarkActionCodegen, Boolean)
Initializes a new instance of the InProcessToolchain class.
Declaration
public InProcessToolchain(TimeSpan timeout, BenchmarkActionCodegen codegenMode, bool logOutput)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | timeout | Timeout for the run. |
BenchmarkActionCodegen | codegenMode | Describes how benchmark action code is generated. |
Boolean | logOutput |
|
Fields
DontLogOutput
The toolchain instance without output logging.
Declaration
public static readonly IToolchain DontLogOutput
Field Value
Type | Description |
---|---|
IToolchain |
Instance
The default toolchain instance.
Declaration
public static readonly IToolchain Instance
Field Value
Type | Description |
---|---|
IToolchain |
Properties
Builder
The builder.
Declaration
public IBuilder Builder { get; }
Property Value
Type | Description |
---|---|
IBuilder | The builder. |
Executor
The executor.
Declaration
public IExecutor Executor { get; }
Property Value
Type | Description |
---|---|
IExecutor | The executor. |
Generator
The generator.
Declaration
public IGenerator Generator { get; }
Property Value
Type | Description |
---|---|
IGenerator | The generator. |
IsInProcess
Declaration
public bool IsInProcess { get; }
Property Value
Type | Description |
---|---|
Boolean |
Name
Name of the toolchain.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
String | The name of the toolchain. |
Methods
IsSupported(BenchmarkCase, ILogger, IResolver)
Determines whether the specified benchmark is supported.
Declaration
public bool IsSupported(BenchmarkCase benchmarkCase, ILogger logger, IResolver resolver)
Parameters
Type | Name | Description |
---|---|---|
BenchmarkCase | benchmarkCase | The benchmark. |
ILogger | logger | The logger. |
IResolver | resolver | The resolver. |
Returns
Type | Description |
---|---|
Boolean |
|
ToString()
Returns a String that represents this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | A String that represents this instance. |