Class InProcessExecutor
Implementation of IExecutor for in-process benchmarks.
Implements
Namespace: BenchmarkDotNet.Toolchains.InProcess
Assembly: BenchmarkDotNet.dll
Syntax
[Obsolete("Please use BenchmarkDotNet.Toolchains.InProcess.NoEmit.* classes")]
public class InProcessExecutor : IExecutor
Constructors
InProcessExecutor(TimeSpan, BenchmarkActionCodegen, Boolean)
Initializes a new instance of the InProcessExecutor class.
Declaration
public InProcessExecutor(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
DefaultTimeout
Default timeout for in-process benchmarks.
Declaration
public static readonly TimeSpan DefaultTimeout
Field Value
| Type | Description |
|---|---|
| TimeSpan |
Properties
CodegenMode
Describes how benchmark action code is generated.
Declaration
public BenchmarkActionCodegen CodegenMode { get; }
Property Value
| Type | Description |
|---|---|
| BenchmarkActionCodegen | Benchmark action code generation mode. |
ExecutionTimeout
Timeout for the run.
Declaration
public TimeSpan ExecutionTimeout { get; }
Property Value
| Type | Description |
|---|---|
| TimeSpan | The timeout for the run. |
LogOutput
Gets a value indicating whether the output should be logged.
Declaration
public bool LogOutput { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
|
Methods
Execute(ExecuteParameters)
Executes the specified benchmark.
Declaration
public ExecuteResult Execute(ExecuteParameters executeParameters)
Parameters
| Type | Name | Description |
|---|---|---|
| ExecuteParameters | executeParameters |
Returns
| Type | Description |
|---|---|
| ExecuteResult |