Provides factory methods to define the features of your histogram.
 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;
 }
 internal RecorderFactory(HistogramFactory histogramBuilder)
 {
     _histogramBuilder = histogramBuilder;
 }
 public IntConcurrentHistogramFactory(HistogramFactory histogramFactory)
 {
     LowestTrackableValue = histogramFactory.LowestTrackableValue;
     HighestTrackableValue = histogramFactory.HighestTrackableValue;
     NumberOfSignificantValueDigits = histogramFactory.NumberOfSignificantValueDigits;
 }