Show / Hide Table of Contents

Class InProcessExecutor

Implementation of IExecutor for in-process benchmarks.

Inheritance
Object
InProcessExecutor
Implements
IExecutor
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

true if the output should be logged.

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

true if the output should be logged; otherwise, false.

Methods

Execute(ExecuteParameters)

Executes the specified benchmark.

Declaration
public ExecuteResult Execute(ExecuteParameters executeParameters)
Parameters
Type Name Description
ExecuteParameters executeParameters
Returns
Type Description
ExecuteResult

Implements

IExecutor
In This Article
Back to top Copyright © 2013–2021 .NET Foundation and contributors