Class InProcessEmitExecutor
Implementation of IExecutor for in-process benchmarks.
Implements
Namespace: BenchmarkDotNet.Toolchains.InProcess.Emit
Assembly: BenchmarkDotNet.dll
Syntax
public class InProcessEmitExecutor : IExecutor
Constructors
InProcessEmitExecutor(TimeSpan, Boolean)
Initializes a new instance of the InProcessExecutor class.
Declaration
public InProcessEmitExecutor(TimeSpan timeout, bool logOutput)
Parameters
| Type | Name | Description |
|---|---|---|
| TimeSpan | timeout | Timeout for the run. |
| Boolean | logOutput |
|
Fields
DefaultTimeout
Default timeout for in-process benchmarks.
Declaration
public static readonly TimeSpan DefaultTimeout
Field Value
| Type | Description |
|---|---|
| TimeSpan |
Properties
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 |