Class MetricNames
Holds all of the constant metric names used for built-in metrics
Inheritance
System.Object
MetricNames
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: NBench.Collection
Assembly: NBench.dll
Syntax
public static class MetricNames
Fields
CounterUnits
Name of the unit measured by counters
Declaration
public const string CounterUnits = "operations"
Field Value
Type | Description |
---|---|
System.String |
CustomCounter
Prefix used for custom counters
Declaration
public static readonly CounterMetricName CustomCounter
Field Value
Type | Description |
---|---|
CounterMetricName |
DefaultUnitName
The default unit name when none are specified
Declaration
public const string DefaultUnitName = "operations"
Field Value
Type | Description |
---|---|
System.String |
GcCollections
Used when calculating garbage collections per generation
Declaration
public static readonly GcMetricName GcCollections
Field Value
Type | Description |
---|---|
GcMetricName |
GcCollectionsUnits
Unit of measure for garbage collections
Declaration
public const string GcCollectionsUnits = "collections"
Field Value
Type | Description |
---|---|
System.String |
MemoryAllocatedUnits
The unit of measure for memory allocations
Declaration
public const string MemoryAllocatedUnits = "bytes"
Field Value
Type | Description |
---|---|
System.String |
TimingUnits
Declaration
public const string TimingUnits = "ms"
Field Value
Type | Description |
---|---|
System.String |
TotalMemoryAllocated
Used when measuring total memory (in bytes) allocated across a benchmark
Declaration
public static readonly MemoryMetricName TotalMemoryAllocated
Field Value
Type | Description |
---|---|
MemoryMetricName |