Show / Hide Table of Contents

Class EnvironmentMode

Inheritance
Object
CharacteristicObject
CharacteristicObject<EnvironmentMode>
JobMode<EnvironmentMode>
EnvironmentMode
Inherited Members
JobMode<EnvironmentMode>.Default
JobMode<EnvironmentMode>.Job
CharacteristicObject<EnvironmentMode>.Apply(CharacteristicObject)
CharacteristicObject<EnvironmentMode>.Apply(CharacteristicObject[])
CharacteristicObject<EnvironmentMode>.ApplyAndFreeze(CharacteristicObject)
CharacteristicObject<EnvironmentMode>.ApplyAndFreeze(CharacteristicObject[])
CharacteristicObject<EnvironmentMode>.Freeze()
CharacteristicObject<EnvironmentMode>.UnfreezeCopy()
CharacteristicObject<EnvironmentMode>.CreateCharacteristic<TC>(String)
CharacteristicObject<EnvironmentMode>.CreateHiddenCharacteristic<TC>(String)
CharacteristicObject<EnvironmentMode>.CreateIgnoreOnApplyCharacteristic<TC>(String)
CharacteristicObject.ResolveId(CharacteristicObject, String)
CharacteristicObject.IdCharacteristic
CharacteristicObject.OwnerOrSelf
CharacteristicObject.Frozen
CharacteristicObject.IsPropertyBag
CharacteristicObject.HasChanges
CharacteristicObject.GetCharacteristicsWithValues()
CharacteristicObject.HasValue(Characteristic)
CharacteristicObject.ResolveValue<T>(Characteristic<T>, IResolver)
CharacteristicObject.ResolveValue<T>(Characteristic<T>, IResolver, T)
CharacteristicObject.ResolveValue(Characteristic, IResolver)
CharacteristicObject.ResolveValue(Characteristic, IResolver, Object)
CharacteristicObject.ResolveValue<T>(Characteristic<T>, T)
CharacteristicObject.ResolveValue(Characteristic, Object)
CharacteristicObject.ResolveValueAsNullable<T>(Characteristic<T>)
CharacteristicObject.ApplyCore(CharacteristicObject)
CharacteristicObject.FreezeCore()
CharacteristicObject.UnfreezeCopyCore()
CharacteristicObject.Id
CharacteristicObject.ToString()
Namespace: BenchmarkDotNet.Jobs
Assembly: BenchmarkDotNet.dll
Syntax
public sealed class EnvironmentMode : JobMode<EnvironmentMode>

Constructors

EnvironmentMode()

Declaration
public EnvironmentMode()

EnvironmentMode(Runtime)

Declaration
public EnvironmentMode(Runtime runtime)
Parameters
Type Name Description
Runtime runtime

EnvironmentMode(String)

Declaration
public EnvironmentMode(string id)
Parameters
Type Name Description
String id

EnvironmentMode(String, Jit, Platform)

Declaration
public EnvironmentMode(string id, Jit jit, Platform platform)
Parameters
Type Name Description
String id
Jit jit
Platform platform

Fields

AffinityCharacteristic

Declaration
public static readonly Characteristic<IntPtr> AffinityCharacteristic
Field Value
Type Description
Characteristic<IntPtr>

EnvironmentVariablesCharacteristic

Declaration
public static readonly Characteristic<IReadOnlyList<EnvironmentVariable>> EnvironmentVariablesCharacteristic
Field Value
Type Description
Characteristic<IReadOnlyList<EnvironmentVariable>>

GcCharacteristic

Declaration
public static readonly Characteristic<GcMode> GcCharacteristic
Field Value
Type Description
Characteristic<GcMode>

JitCharacteristic

Declaration
public static readonly Characteristic<Jit> JitCharacteristic
Field Value
Type Description
Characteristic<Jit>

LegacyJitX64

Declaration
public static readonly EnvironmentMode LegacyJitX64
Field Value
Type Description
EnvironmentMode

LegacyJitX86

Declaration
public static readonly EnvironmentMode LegacyJitX86
Field Value
Type Description
EnvironmentMode

PlatformCharacteristic

Declaration
public static readonly Characteristic<Platform> PlatformCharacteristic
Field Value
Type Description
Characteristic<Platform>

PowerPlanModeCharacteristic

Declaration
public static readonly Characteristic<Guid?> PowerPlanModeCharacteristic
Field Value
Type Description
Characteristic<Nullable<Guid>>

RuntimeCharacteristic

Declaration
public static readonly Characteristic<Runtime> RuntimeCharacteristic
Field Value
Type Description
Characteristic<Runtime>

RyuJitX64

Declaration
public static readonly EnvironmentMode RyuJitX64
Field Value
Type Description
EnvironmentMode

RyuJitX86

Declaration
public static readonly EnvironmentMode RyuJitX86
Field Value
Type Description
EnvironmentMode

Properties

Affinity

ProcessorAffinity for the benchmark process. See also: https://msdn.microsoft.com/library/system.diagnostics.process.processoraffinity.aspx

Declaration
public IntPtr Affinity { get; set; }
Property Value
Type Description
IntPtr

EnvironmentVariables

Declaration
public IReadOnlyList<EnvironmentVariable> EnvironmentVariables { get; set; }
Property Value
Type Description
IReadOnlyList<EnvironmentVariable>

Gc

GcMode

Declaration
public GcMode Gc { get; }
Property Value
Type Description
GcMode

Jit

JIT (Just-In-Time compiler)

Declaration
public Jit Jit { get; set; }
Property Value
Type Description
Jit

Platform

Platform (x86 or x64)

Declaration
public Platform Platform { get; set; }
Property Value
Type Description
Platform

PowerPlanMode

Power Plan Mode

Declaration
public Guid? PowerPlanMode { get; set; }
Property Value
Type Description
Nullable<Guid>
Remarks

Supported only on Windows.

Runtime

Runtime

Declaration
public Runtime Runtime { get; set; }
Property Value
Type Description
Runtime

Methods

SetEnvironmentVariable(EnvironmentVariable)

Adds the specified variable to EnvironmentVariables. If EnvironmentVariables already contains a variable with the same key, it will be overriden.

Declaration
public void SetEnvironmentVariable(EnvironmentVariable variable)
Parameters
Type Name Description
EnvironmentVariable variable

The new environment variable which should be added to EnvironmentVariables

Extension Methods

CharacteristicHelper.GetThisTypeCharacteristics(CharacteristicObject)
CharacteristicHelper.GetAllCharacteristics(CharacteristicObject)
In This Article
Back to top Copyright © 2013–2021 .NET Foundation and contributors