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