Show / Hide Table of Contents

    Class CounterMetricCollector

    A simple concurrent counter used for user-defined metrics

    Inheritance
    System.Object
    MetricCollector
    CounterMetricCollector
    Implements
    System.IDisposable
    Inherited Members
    MetricCollector.Name
    MetricCollector.UnitName
    MetricCollector.WasDisposed
    MetricCollector.DisposeInternal()
    MetricCollector.Dispose()
    MetricCollector.Dispose(Boolean)
    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.Counters
    Assembly: NBench.dll
    Syntax
    public class CounterMetricCollector : MetricCollector, IDisposable

    Constructors

    CounterMetricCollector(MetricName, AtomicCounter)

    Declaration
    public CounterMetricCollector(MetricName name, AtomicCounter counter)
    Parameters
    Type Name Description
    MetricName name
    AtomicCounter counter

    CounterMetricCollector(MetricName, String, AtomicCounter)

    Declaration
    public CounterMetricCollector(MetricName name, string unitName, AtomicCounter counter)
    Parameters
    Type Name Description
    MetricName name
    System.String unitName
    AtomicCounter counter

    Methods

    Collect()

    Declaration
    public override double Collect()
    Returns
    Type Description
    System.Double
    Overrides
    MetricCollector.Collect()

    Implements

    System.IDisposable
    Back to top Copyright © 2015-2020 Petabridge™, LLC