Class GcModeExtensions
- Namespace
- BenchmarkDotNet.Jobs
- Assembly
- BenchmarkDotNet.dll
public static class GcModeExtensions
- Inheritance
-
GcModeExtensions
Methods
WithAllowVeryLargeObjects(GcMode, bool)
On 64-bit platforms, enables arrays that are greater than 2 gigabytes (GB) in total size.
public static GcMode WithAllowVeryLargeObjects(this GcMode mode, bool value)
Parameters
Returns
WithConcurrent(GcMode, bool)
Specifies whether the common language runtime runs garbage collection on a separate thread.
public static GcMode WithConcurrent(this GcMode mode, bool value)
Parameters
Returns
WithCpuGroups(GcMode, bool)
Specifies whether garbage collection supports multiple CPU groups.
public static GcMode WithCpuGroups(this GcMode mode, bool value)
Parameters
Returns
WithForce(GcMode, bool)
Specifies whether the BenchmarkDotNet's benchmark runner forces full garbage collection after each benchmark invocation
public static GcMode WithForce(this GcMode mode, bool value)
Parameters
Returns
WithHeapAffinitizeMask(GcMode, int)
process mask, see MSDN for more.
public static GcMode WithHeapAffinitizeMask(this GcMode mode, int heapAffinitizeMask)
Parameters
Returns
WithHeapCount(GcMode, int)
specify the # of Server GC threads/heaps, must be smaller than the # of logical CPUs the process is allowed to run on, ie, if you don't specifically affinitize your process it means the # of total logical CPUs on the machine; otherwise this is the # of logical CPUs you affinitized your process to.
public static GcMode WithHeapCount(this GcMode mode, int heapCount)
Parameters
Returns
WithNoAffinitize(GcMode, bool)
specify true to disable hard affinity of Server GC threads to CPUs
public static GcMode WithNoAffinitize(this GcMode mode, bool value)
Parameters
Returns
WithRetainVm(GcMode, bool)
Put segments that should be deleted on a standby list for future use instead of releasing them back to the OS
public static GcMode WithRetainVm(this GcMode mode, bool value)
Parameters
Returns
WithServer(GcMode, bool)
Specifies whether the common language runtime runs server garbage collection.
public static GcMode WithServer(this GcMode mode, bool value)