Méthode | Description | |
---|---|---|
GetIntervalHistogram ( ) : |
Get a new instance of an interval histogram, which will include a stable, consistent view of all value counts accumulated since the last interval histogram was taken. Calling GetIntervalHistogram() will reset the value counts, and start accumulating value counts for the next interval.
|
|
GetIntervalHistogram ( |
Get a new instance of an interval histogram, which will include a stable, consistent view of all value counts accumulated since the last interval histogram was taken. Calling GetIntervalHistogram() will reset the value counts, and start accumulating value counts for the next interval. GetIntervalHistogram(HistogramBase) accepts a previously returned interval histogram that can be recycled internally to avoid allocation and content copying operations. It is therefore significantly more efficient for repeated use than GetIntervalHistogram() and GetIntervalHistogramInto(HistogramBase). The provided histogramToRecycle must be either be null or an interval histogram returned by a previous call to GetIntervalHistogram(HistogramBase) or GetIntervalHistogram(). NOTE: The caller is responsible for not recycling the same returned interval histogram more than once. If the same interval histogram instance is recycled more than once, behavior is undefined. |
|
GetIntervalHistogramInto ( |
Place a copy of the value counts accumulated since accumulated (since the last interval histogram was taken) into targetHistogram. This will overwrite the existing data in targetHistogram. Calling GetIntervalHistogramInto(HistogramBase) will reset the value counts, and start accumulating value counts for the next interval.
|
|
RecordValue ( long value ) : void |
Records a value in the histogram
|
|
RecordValueWithCount ( long value, long count ) : void |
Record a value in the histogram (adding to the value's current count)
|
|
RecordValueWithExpectedInterval ( long value, long expectedIntervalBetweenValueSamples ) : void |
Record a value in the histogram. To compensate for the loss of sampled values when a recorded value is larger than the expected interval between value samples, Histogram will auto-generate an additional series of decreasingly-smaller (down to the expectedIntervalBetweenValueSamples) value records. Note: This is a at-recording correction method, as opposed to the post-recording correction method provided by CopyCorrectedForCoordinatedOmission. The two methods are mutually exclusive, and only one of the two should be be used on a given data set to correct for the same coordinated omission issue. See notes in the description of the Histogram calls for an illustration of why this corrective behavior is important. |
|
Recorder ( long lowestDiscernibleValue, long highestTrackableValue, int numberOfSignificantValueDigits, HistogramFactoryDelegate histogramFactory ) : System |
Creates a recorder that will delegate recording to histograms created from these parameters.
|
|
Reset ( ) : void |
Reset any value counts accumulated thus far.
|
Méthode | Description | |
---|---|---|
PerformIntervalSample ( ) : void | ||
ValidateFitAsReplacementHistogram ( |
public GetIntervalHistogram ( ) : |
||
Résultat |
public GetIntervalHistogram ( |
||
histogramToRecycle | a previously returned interval histogram that may be recycled to avoid allocation and copy operations. | |
Résultat |
public GetIntervalHistogramInto ( |
||
targetHistogram | The histogram into which the interval histogram's data should be copied. | |
Résultat | void |
public RecordValue ( long value ) : void | ||
value | long | The value to be recorded |
Résultat | void |
public RecordValueWithCount ( long value, long count ) : void | ||
value | long | The value to be recorded |
count | long | The number of occurrences of this value to record |
Résultat | void |
public RecordValueWithExpectedInterval ( long value, long expectedIntervalBetweenValueSamples ) : void | ||
value | long | The value to record |
expectedIntervalBetweenValueSamples | long | If |
Résultat | void |
public Recorder ( long lowestDiscernibleValue, long highestTrackableValue, int numberOfSignificantValueDigits, HistogramFactoryDelegate histogramFactory ) : System | ||
lowestDiscernibleValue | long | The lowest value that can be tracked (distinguished from 0) by the histogram. /// Must be a positive integer that is >= 1. /// May be internally rounded down to nearest power of 2. /// |
highestTrackableValue | long | The highest value to be tracked by the histogram. /// Must be a positive integer that is >= (2 * lowestTrackableValue). /// |
numberOfSignificantValueDigits | int | /// The number of significant decimal digits to which the histogram will maintain value resolution and separation. /// Must be a non-negative integer between 0 and 5. /// |
histogramFactory | HistogramFactoryDelegate | The factory to be used to actually create instances of |
Résultat | System |