Class HostEnvironmentInfo
- Namespace
- BenchmarkDotNet.Environments
- Assembly
- BenchmarkDotNet.dll
public class HostEnvironmentInfo : BenchmarkEnvironmentInfo
- Inheritance
-
HostEnvironmentInfo
- Inherited Members
Constructors
HostEnvironmentInfo()
protected HostEnvironmentInfo()
Fields
BenchmarkDotNetCaption
public const string BenchmarkDotNetCaption = "BenchmarkDotNet"
Field Value
Properties
AntivirusProducts
public Lazy<ICollection<Antivirus>> AntivirusProducts { get; }
Property Value
BenchmarkDotNetVersion
public string BenchmarkDotNetVersion { get; protected set; }
Property Value
ChronometerFrequency
The frequency of the timer as the number of ticks per second.
public Frequency ChronometerFrequency { get; protected set; }
Property Value
- Frequency
ChronometerResolution
public TimeInterval ChronometerResolution { get; }
Property Value
- TimeInterval
CpuInfo
is expensive to call (1s)
public Lazy<CpuInfo> CpuInfo { get; protected set; }
Property Value
DotNetSdkVersion
.NET Core SDK version
dotnet --version
)
public Lazy<string> DotNetSdkVersion { get; protected set; }
Property Value
FallbackLogger
Logger to use when there's no config available.
public static ILogger FallbackLogger { get; }
Property Value
HardwareTimerKind
public HardwareTimerKind HardwareTimerKind { get; protected set; }
Property Value
- HardwareTimerKind
IsMonoInstalled
checks if Mono is installed
mono --version
)
public Lazy<bool> IsMonoInstalled { get; }
Property Value
OsVersion
Could be expensive
public Lazy<string> OsVersion { get; protected set; }
Property Value
VirtualMachineHypervisor
public Lazy<VirtualMachineHypervisor> VirtualMachineHypervisor { get; protected set; }
Property Value
Methods
GetCurrent()
public static HostEnvironmentInfo GetCurrent()
Returns
GetInformation()
Return string representation of CPU and environment configuration including BenchmarkDotNet, OS and .NET version
public static string GetInformation()
Returns
IsDotNetCliInstalled()
public bool IsDotNetCliInstalled()
Returns
ToFormattedString()
public override IEnumerable<string> ToFormattedString()