protected BenchmarkEnvironmentInfo() { Architecture = RuntimeInformation.GetArchitecture(); RuntimeVersion = RuntimeInformation.GetRuntimeVersion(); Configuration = RuntimeInformation.GetConfiguration(); HasRyuJit = RuntimeInformation.HasRyuJit(); JitInfo = RuntimeInformation.GetJitInfo(); IsServerGC = GCSettings.IsServerGC; IsConcurrentGC = GCSettings.LatencyMode != GCLatencyMode.Batch; }
protected BenchmarkEnvironmentInfo() { Architecture = RuntimeInformation.GetArchitecture(); RuntimeVersion = RuntimeInformation.GetRuntimeVersion(); Configuration = RuntimeInformation.GetConfiguration(); HasRyuJit = RuntimeInformation.HasRyuJit(); JitInfo = RuntimeInformation.GetJitInfo(); IsServerGC = GCSettings.IsServerGC; IsConcurrentGC = GCSettings.LatencyMode != GCLatencyMode.Batch; HasAttachedDebugger = Debugger.IsAttached; GCAllocationQuantum = GcStats.AllocationQuantum; }