Provides factory methods to define the features of your histogram.
Ejemplo n.º 1
0
 public Recorder(
     long lowestDiscernibleValue,
     long highestTrackableValue,
     int numberOfSignificantValueDigits,
     HistogramFactory histogramFactory)
 {
     _histogramFactory = histogramFactory;
     _activeHistogram = histogramFactory(_instanceId, lowestDiscernibleValue, highestTrackableValue, numberOfSignificantValueDigits);
     _inactiveHistogram = histogramFactory(_instanceId, lowestDiscernibleValue, highestTrackableValue, numberOfSignificantValueDigits);
     _activeHistogram.StartTimeStamp = DateTime.Now.MillisecondsSinceUnixEpoch();
 }
Ejemplo n.º 2
0
 internal RecorderFactory(HistogramFactory histogramBuilder)
 {
     _histogramBuilder = histogramBuilder;
 }
Ejemplo n.º 3
0
 public IntConcurrentHistogramFactory(HistogramFactory histogramFactory)
 {
     LowestTrackableValue           = histogramFactory.LowestTrackableValue;
     HighestTrackableValue          = histogramFactory.HighestTrackableValue;
     NumberOfSignificantValueDigits = histogramFactory.NumberOfSignificantValueDigits;
 }
Ejemplo n.º 4
0
 internal RecorderFactory(HistogramFactory histogramBuilder)
 {
     _histogramBuilder = histogramBuilder;
 }
Ejemplo n.º 5
0
 public IntConcurrentHistogramFactory(HistogramFactory histogramFactory)
 {
     LowestTrackableValue = histogramFactory.LowestTrackableValue;
     HighestTrackableValue = histogramFactory.HighestTrackableValue;
     NumberOfSignificantValueDigits = histogramFactory.NumberOfSignificantValueDigits;
 }