Table of Contents

Class RunnableConstants

Namespace
BenchmarkDotNet.Toolchains.InProcess.Emit.Implementation
Assembly
BenchmarkDotNet.dll

A helper type that emits code that matches BenchmarkType.txt template. IMPORTANT: this type IS NOT thread safe.

public class RunnableConstants
Inheritance
RunnableConstants

Constructors

RunnableConstants()

public RunnableConstants()

Fields

ArgFieldPrefix

public const string ArgFieldPrefix = "__argField"

Field Value

string

ArgParamPrefix

public const string ArgParamPrefix = "arg"

Field Value

string

ConsumerFieldName

public const string ConsumerFieldName = "consumer"

Field Value

string

Dummy1MethodName

public const string Dummy1MethodName = "Dummy1"

Field Value

string

Dummy2MethodName

public const string Dummy2MethodName = "Dummy2"

Field Value

string

Dummy3MethodName

public const string Dummy3MethodName = "Dummy3"

Field Value

string

DummyParamName

public const string DummyParamName = "_"

Field Value

string

DummyUnrollFactor

public const int DummyUnrollFactor = 64

Field Value

int

DummyVarFieldName

public const string DummyVarFieldName = "dummyVar"

Field Value

string

DynamicAssemblySuffix

public const string DynamicAssemblySuffix = "Emitted"

Field Value

string

EmittedTypePrefix

public const string EmittedTypePrefix = "BenchmarkDotNet.Autogenerated.Runnable_"

Field Value

string

ForDisassemblyDiagnoserMethodName

public const string ForDisassemblyDiagnoserMethodName = "__ForDisassemblyDiagnoser__"

Field Value

string

GlobalCleanupActionFieldName

public const string GlobalCleanupActionFieldName = "globalCleanupAction"

Field Value

string

GlobalCleanupMethodName

public const string GlobalCleanupMethodName = "GlobalCleanup"

Field Value

string

GlobalSetupActionFieldName

public const string GlobalSetupActionFieldName = "globalSetupAction"

Field Value

string

GlobalSetupMethodName

public const string GlobalSetupMethodName = "GlobalSetup"

Field Value

string

InvokeCountParamName

public const string InvokeCountParamName = "invokeCount"

Field Value

string

IsByRefLikeAttributeTypeName

public const string IsByRefLikeAttributeTypeName = "System.Runtime.CompilerServices.IsByRefLikeAttribute"

Field Value

string

IterationCleanupActionFieldName

public const string IterationCleanupActionFieldName = "iterationCleanupAction"

Field Value

string

IterationCleanupMethodName

public const string IterationCleanupMethodName = "IterationCleanup"

Field Value

string

IterationSetupActionFieldName

public const string IterationSetupActionFieldName = "iterationSetupAction"

Field Value

string

IterationSetupMethodName

public const string IterationSetupMethodName = "IterationSetup"

Field Value

string

NonGenericKeepAliveWithoutBoxingMethodName

public const string NonGenericKeepAliveWithoutBoxingMethodName = "NonGenericKeepAliveWithoutBoxing"

Field Value

string

NotElevenFieldName

public const string NotElevenFieldName = "NotEleven"

Field Value

string

OpImplicitMethodName

public const string OpImplicitMethodName = "op_Implicit"

Field Value

string

OverheadActionNoUnrollMethodName

public const string OverheadActionNoUnrollMethodName = "OverheadActionNoUnroll"

Field Value

string

OverheadActionUnrollMethodName

public const string OverheadActionUnrollMethodName = "OverheadActionUnroll"

Field Value

string

OverheadDelegateFieldName

public const string OverheadDelegateFieldName = "overheadDelegate"

Field Value

string

OverheadDelegateTypeSuffix

public const string OverheadDelegateTypeSuffix = "OverheadDelegate"

Field Value

string

OverheadImplementationMethodName

public const string OverheadImplementationMethodName = "__Overhead"

Field Value

string

RunMethodName

public const string RunMethodName = "Run"

Field Value

string

TrickTheJitCoreMethodName

public const string TrickTheJitCoreMethodName = "__TrickTheJIT__"

Field Value

string

WorkloadActionNoUnrollMethodName

public const string WorkloadActionNoUnrollMethodName = "WorkloadActionNoUnroll"

Field Value

string

WorkloadActionUnrollMethodName

public const string WorkloadActionUnrollMethodName = "WorkloadActionUnroll"

Field Value

string

WorkloadDefaultValueHolderFieldName

public const string WorkloadDefaultValueHolderFieldName = "workloadDefaultValueHolder"

Field Value

string

WorkloadDelegateFieldName

public const string WorkloadDelegateFieldName = "workloadDelegate"

Field Value

string

WorkloadDelegateTypeSuffix

public const string WorkloadDelegateTypeSuffix = "WorkloadDelegate"

Field Value

string

WorkloadImplementationMethodName

public const string WorkloadImplementationMethodName = "__Workload"

Field Value

string