当前位置: 首页>>代码示例>>Java>>正文


Java DoubleHistogram.getMaxValue方法代码示例

本文整理汇总了Java中org.HdrHistogram.DoubleHistogram.getMaxValue方法的典型用法代码示例。如果您正苦于以下问题:Java DoubleHistogram.getMaxValue方法的具体用法?Java DoubleHistogram.getMaxValue怎么用?Java DoubleHistogram.getMaxValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.HdrHistogram.DoubleHistogram的用法示例。


在下文中一共展示了DoubleHistogram.getMaxValue方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: buildDoubleHistogramStatistics

import org.HdrHistogram.DoubleHistogram; //导入方法依赖的package包/类
protected Object[] buildDoubleHistogramStatistics(DoubleHistogram doubleIntervalHistogram, DoubleHistogram accumulatedDoubleHistogram) {
    return new Object[]{((doubleIntervalHistogram.getEndTimeStamp() / 1000.0) - logReader.getStartTimeSec()),
            // values recorded during the last reporting interval
            doubleIntervalHistogram.getTotalCount(),
            doubleIntervalHistogram.getValueAtPercentile(50.0) / config.outputValueUnitRatio,
            doubleIntervalHistogram.getValueAtPercentile(90.0) / config.outputValueUnitRatio,
            doubleIntervalHistogram.getMaxValue() / config.outputValueUnitRatio,
            // values recorded from the beginning until now
            accumulatedDoubleHistogram.getTotalCount(),
            accumulatedDoubleHistogram.getValueAtPercentile(50.0) / config.outputValueUnitRatio,
            accumulatedDoubleHistogram.getValueAtPercentile(90.0) / config.outputValueUnitRatio,
            accumulatedDoubleHistogram.getValueAtPercentile(99.0) / config.outputValueUnitRatio,
            accumulatedDoubleHistogram.getValueAtPercentile(99.9) / config.outputValueUnitRatio,
            accumulatedDoubleHistogram.getValueAtPercentile(99.99) / config.outputValueUnitRatio,
            accumulatedDoubleHistogram.getMaxValue() / config.outputValueUnitRatio};
}
 
开发者ID:hazelcast,项目名称:hazelcast-simulator,代码行数:17,代码来源:HistogramLogProcessor.java

示例2: buildDoubleHistogramStatistics

import org.HdrHistogram.DoubleHistogram; //导入方法依赖的package包/类
protected Object[] buildDoubleHistogramStatistics(DoubleHistogram intervalHistogram, DoubleHistogram accumulatedHistogram) {
    double intervalThroughput = ((double) (intervalHistogram.getTotalCount())
            / (intervalHistogram.getEndTimeStamp() - intervalHistogram.getStartTimeStamp()));

    double totalThroughput = ((double) accumulatedHistogram.getTotalCount())
            / (accumulatedHistogram.getEndTimeStamp() - accumulatedHistogram.getStartTimeStamp());

    return new Object[]{
            ((intervalHistogram.getEndTimeStamp() / 1000.0) - logReader.getStartTimeSec()),
            (intervalHistogram.getEndTimeStamp() / 1000.0),
            // values recorded during the last reporting interval
            intervalHistogram.getTotalCount(),
            intervalHistogram.getValueAtPercentile(25.0) / config.outputValueUnitRatio,
            intervalHistogram.getValueAtPercentile(50.0) / config.outputValueUnitRatio,
            intervalHistogram.getValueAtPercentile(75) / config.outputValueUnitRatio,
            intervalHistogram.getValueAtPercentile(90.0) / config.outputValueUnitRatio,
            intervalHistogram.getValueAtPercentile(99.0) / config.outputValueUnitRatio,
            intervalHistogram.getValueAtPercentile(99.9) / config.outputValueUnitRatio,
            intervalHistogram.getValueAtPercentile(99.99) / config.outputValueUnitRatio,
            intervalHistogram.getValueAtPercentile(99.999) / config.outputValueUnitRatio,
            intervalHistogram.getMinValue() / config.outputValueUnitRatio,
            intervalHistogram.getMaxValue() / config.outputValueUnitRatio,
            intervalHistogram.getMean() / config.outputValueUnitRatio,
            intervalHistogram.getStdDeviation() / config.outputValueUnitRatio,
            intervalThroughput / config.outputValueUnitRatio,

            // values recorded from the beginning until now
            accumulatedHistogram.getTotalCount(),
            accumulatedHistogram.getValueAtPercentile(25.0) / config.outputValueUnitRatio,
            accumulatedHistogram.getValueAtPercentile(50.0) / config.outputValueUnitRatio,
            accumulatedHistogram.getValueAtPercentile(75.0) / config.outputValueUnitRatio,
            accumulatedHistogram.getValueAtPercentile(90.0) / config.outputValueUnitRatio,
            accumulatedHistogram.getValueAtPercentile(99.0) / config.outputValueUnitRatio,
            accumulatedHistogram.getValueAtPercentile(99.9) / config.outputValueUnitRatio,
            accumulatedHistogram.getValueAtPercentile(99.99) / config.outputValueUnitRatio,
            accumulatedHistogram.getValueAtPercentile(99.999) / config.outputValueUnitRatio,
            accumulatedHistogram.getMinValue() / config.outputValueUnitRatio,
            accumulatedHistogram.getMaxValue() / config.outputValueUnitRatio,
            accumulatedHistogram.getMean() / config.outputValueUnitRatio,
            accumulatedHistogram.getStdDeviation() / config.outputValueUnitRatio,
            totalThroughput / config.outputValueUnitRatio,
    };
}
 
开发者ID:hazelcast,项目名称:hazelcast-simulator,代码行数:44,代码来源:SimulatorHistogramLogProcessor.java


注:本文中的org.HdrHistogram.DoubleHistogram.getMaxValue方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。