Class MeasureBucket
A metric that's collected over the course of a test run using a stack of values sampled over time, the deltas of which will later be calculated.
Inheritance
System.Object
MeasureBucket
Implements
System.IDisposable
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.Metrics
Assembly: NBench.dll
Syntax
public class MeasureBucket : IDisposable
Constructors
MeasureBucket(MetricCollector)
Declaration
public MeasureBucket(MetricCollector collector)
Parameters
Type | Name | Description |
---|---|---|
MetricCollector | collector |
Fields
CurrentCount
Declaration
protected int CurrentCount
Field Value
Type | Description |
---|---|
System.Int32 |
Measurements
Declaration
protected readonly MetricMeasurement[] Measurements
Field Value
Type | Description |
---|---|
MetricMeasurement[] |
Properties
Name
Name of the metric
Declaration
public MetricName Name { get; }
Property Value
Type | Description |
---|---|
MetricName |
Unit
Name of the unit
Declaration
public string Unit { get; }
Property Value
Type | Description |
---|---|
System.String |
WasDisposed
Declaration
public bool WasDisposed { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
Collect(Int64)
Declaration
public void Collect(long elapsedTicks)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | elapsedTicks |
Dispose()
Declaration
public void Dispose()
ToReport()
Converts the data collected within this MeasureBucket into a MetricRunReport.
Declaration
public MetricRunReport ToReport()
Returns
Type | Description |
---|---|
MetricRunReport | A metric run report containing all of the delta for this measure bucket. |
Implements
System.IDisposable