protected BenchmarkEnvironmentInfo() { Architecture = RuntimeInformation.GetArchitecture(); ClrVersion = RuntimeInformation.GetClrVersion(); Configuration = RuntimeInformation.GetConfiguration(); HasRyuJit = RuntimeInformation.HasRyuJit(); 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; }
[SuppressMessage("ReSharper", "UnusedMember.Global")] // TODO: should be used or removed public static IEnumerable <ValidationError> Validate(Job job) { if (job.Environment.Jit == Jit.RyuJit && !RuntimeInformation.HasRyuJit()) { yield return(new ValidationError(true, "RyuJIT is requested but it is not available in current environment")); } var currentRuntime = RuntimeInformation.GetCurrentRuntime(); if (job.Environment.Jit == Jit.LegacyJit && !(currentRuntime is ClrRuntime)) { yield return(new ValidationError(true, $"LegacyJIT is requested but it is not available for {currentRuntime}")); } }
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; InDocker = RuntimeInformation.IsRunningInContainer; }
private EnvironmentInfo() { BenchmarkDotNetCaption = GetBenchmarkDotNetCaption(); BenchmarkDotNetVersion = GetBenchmarkDotNetVersion(); OsVersion = RuntimeInformation.GetOsVersion(); ProcessorName = RuntimeInformation.GetProcessorName(); ProcessorCount = Environment.ProcessorCount; ClrVersion = RuntimeInformation.GetClrVersion(); Architecture = GetArchitecture(); HasAttachedDebugger = Debugger.IsAttached; HasRyuJit = RuntimeInformation.HasRyuJit(); Configuration = RuntimeInformation.GetConfiguration(); ChronometerFrequency = Chronometer.Frequency; JitModules = RuntimeInformation.GetJitModules(); HardwareTimerKind = Chronometer.HardwareTimerKind; DotNetCliVersion = new Lazy <string>(DotNetCliCommandExecutor.GetDotNetCliVersion); }