Class EnvironmentMode
- Namespace
- BenchmarkDotNet.Jobs
- Assembly
- BenchmarkDotNet.dll
public sealed class EnvironmentMode : JobMode<EnvironmentMode>
- Inheritance
-
EnvironmentMode
- Inherited Members
- Extension Methods
Constructors
EnvironmentMode()
public EnvironmentMode()
EnvironmentMode(Runtime)
public EnvironmentMode(Runtime runtime)
Parameters
runtime
Runtime
EnvironmentMode(string)
public EnvironmentMode(string id)
Parameters
id
string
EnvironmentMode(string, Jit, Platform)
public EnvironmentMode(string id, Jit jit, Platform platform)
Parameters
Fields
AffinityCharacteristic
public static readonly Characteristic<nint> AffinityCharacteristic
Field Value
EnvironmentVariablesCharacteristic
public static readonly Characteristic<IReadOnlyList<EnvironmentVariable>> EnvironmentVariablesCharacteristic
Field Value
GcCharacteristic
public static readonly Characteristic<GcMode> GcCharacteristic
Field Value
JitCharacteristic
public static readonly Characteristic<Jit> JitCharacteristic
Field Value
LargeAddressAwareCharacteristic
public static readonly Characteristic<bool> LargeAddressAwareCharacteristic
Field Value
LegacyJitX64
public static readonly EnvironmentMode LegacyJitX64
Field Value
LegacyJitX86
public static readonly EnvironmentMode LegacyJitX86
Field Value
PlatformCharacteristic
public static readonly Characteristic<Platform> PlatformCharacteristic
Field Value
PowerPlanModeCharacteristic
public static readonly Characteristic<Guid?> PowerPlanModeCharacteristic
Field Value
RuntimeCharacteristic
public static readonly Characteristic<Runtime> RuntimeCharacteristic
Field Value
RyuJitX64
public static readonly EnvironmentMode RyuJitX64
Field Value
RyuJitX86
public static readonly EnvironmentMode RyuJitX86
Field Value
Properties
Affinity
ProcessorAffinity for the benchmark process. See also: https://msdn.microsoft.com/library/system.diagnostics.process.processoraffinity.aspx
public nint Affinity { get; set; }
Property Value
EnvironmentVariables
public IReadOnlyList<EnvironmentVariable> EnvironmentVariables { get; set; }
Property Value
Gc
GcMode
public GcMode Gc { get; }
Property Value
Jit
JIT (Just-In-Time compiler)
public Jit Jit { get; set; }
Property Value
LargeAddressAware
Specifies that benchmark can handle addresses larger than 2 gigabytes.
public bool LargeAddressAware { get; set; }
Property Value
Platform
Platform (x86 or x64)
public Platform Platform { get; set; }
Property Value
PowerPlanMode
Power Plan Mode
public Guid? PowerPlanMode { get; set; }
Property Value
- Guid?
Remarks
Supported only on Windows.
Runtime
Runtime
public Runtime Runtime { get; set; }
Property Value
Methods
SetEnvironmentVariable(EnvironmentVariable)
Adds the specified variable
to EnvironmentVariables.
If EnvironmentVariables already contains a variable with the same key,
it will be overriden.
public void SetEnvironmentVariable(EnvironmentVariable variable)
Parameters
variable
EnvironmentVariableThe new environment variable which should be added to EnvironmentVariables