Provides factory methods to define the features of your histogram.
Пример #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();
 }
Пример #2
0
 internal RecorderFactory(HistogramFactory histogramBuilder)
 {
     _histogramBuilder = histogramBuilder;
 }
Пример #3
0
 public IntConcurrentHistogramFactory(HistogramFactory histogramFactory)
 {
     LowestTrackableValue           = histogramFactory.LowestTrackableValue;
     HighestTrackableValue          = histogramFactory.HighestTrackableValue;
     NumberOfSignificantValueDigits = histogramFactory.NumberOfSignificantValueDigits;
 }
Пример #4
0
 internal RecorderFactory(HistogramFactory histogramBuilder)
 {
     _histogramBuilder = histogramBuilder;
 }
Пример #5
0
 public IntConcurrentHistogramFactory(HistogramFactory histogramFactory)
 {
     LowestTrackableValue = histogramFactory.LowestTrackableValue;
     HighestTrackableValue = histogramFactory.HighestTrackableValue;
     NumberOfSignificantValueDigits = histogramFactory.NumberOfSignificantValueDigits;
 }