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;
 }