Package org.HdrHistogram_voltpatches

Examples of org.HdrHistogram_voltpatches.HistogramData$LinearBucketValues


     *
     * @return An array containing counts for different latency values.
     */
    public long[] getLatencyBucketsBy1ms() {
        final long buckets[] = new long[ONE_MS_BUCKET_COUNT];
        final HistogramData data = m_latencyHistogram.getHistogramData();
        for (int ii = 0; ii < ONE_MS_BUCKET_COUNT; ii++) {
            buckets[ii] = data.getCountBetweenValues(ii * 1000, (ii + 1) * 1000);
        }
        return buckets;
    }
View Full Code Here


     *
     * @return An array containing counts for different latency values.
     */
    public long[] getLatencyBucketsBy10ms() {
        final long buckets[] = new long[TEN_MS_BUCKET_COUNT];
        final HistogramData data = m_latencyHistogram.getHistogramData();
        for (int ii = 0; ii < TEN_MS_BUCKET_COUNT; ii++) {
            buckets[ii] = data.getCountBetweenValues(ii * 10000, (ii + 1) * 10000);
        }
        return buckets;
    }
View Full Code Here

     *
     * @return An array containing counts for different latency values.
     */
    public long[] getLatencyBucketsBy100ms() {
        final long buckets[] = new long[HUNDRED_MS_BUCKET_COUNT];
        final HistogramData data = m_latencyHistogram.getHistogramData();
        for (int ii = 0; ii < HUNDRED_MS_BUCKET_COUNT; ii++) {
            buckets[ii] = data.getCountBetweenValues(ii * 100000, (ii + 1) * 100000);
        }
        return buckets;
    }
View Full Code Here

     *
     * @param percentile A floating point number between 0.0 and 1.0.
     * @return An estimate of k-percentile latency in whole milliseconds.
     */
    public int kPercentileLatency(double percentile) {
        final HistogramData data = m_latencyHistogram.getHistogramData();
        if (data.getTotalCount() == 0) return 0;
        percentile = Math.max(0.0, percentile);
        //Convert from micros to millis for return value, round to nearest integer
        return (int) (Math.round(data.getValueAtPercentile(percentile * 100.0)) / 1000.0);
    }
View Full Code Here

     *
     * @param percentile A floating point number between 0.0 and 1.0.
     * @return An estimate of k-percentile latency in whole milliseconds.
     */
    public double kPercentileLatencyAsDouble(double percentile) {
        final HistogramData data = m_latencyHistogram.getHistogramData();
        if (data.getTotalCount() == 0) return 0.0;
        percentile = Math.max(0.0, percentile);
        //Convert from micros to millis for return value, enjoy having precision
        return data.getValueAtPercentile(percentile * 100.0) / 1000.0;
    }
View Full Code Here

TOP

Related Classes of org.HdrHistogram_voltpatches.HistogramData$LinearBucketValues

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.