| 38 | } |
| 39 | |
| 40 | void LatencyRecorder::writeReport(std::ostream& stream) const |
| 41 | { |
| 42 | stream |
| 43 | << "min: " << DurationPrinter(static_cast< std::int64_t >(boost::accumulators::min(m_accumulator))) |
| 44 | << ", mean: " << DurationPrinter(static_cast< std::int64_t >(boost::accumulators::mean(m_accumulator))) |
| 45 | << ", max: " << DurationPrinter(static_cast< std::int64_t >(boost::accumulators::max(m_accumulator))) |
| 46 | << ", Q99.99: " << DurationPrinter(static_cast< std::int64_t >(boost::accumulators::quantile(m_accumulator, boost::accumulators::quantile_probability = 0.9999))) |
| 47 | << ", Q99.9: " << DurationPrinter(static_cast< std::int64_t >(boost::accumulators::quantile(m_accumulator, boost::accumulators::quantile_probability = 0.999))) |
| 48 | << ", Q99: " << DurationPrinter(static_cast< std::int64_t >(boost::accumulators::quantile(m_accumulator, boost::accumulators::quantile_probability = 0.99))) |
| 49 | << ", Q98: " << DurationPrinter(static_cast< std::int64_t >(boost::accumulators::quantile(m_accumulator, boost::accumulators::quantile_probability = 0.98))) |
| 50 | << ", Q95: " << DurationPrinter(static_cast< std::int64_t >(boost::accumulators::quantile(m_accumulator, boost::accumulators::quantile_probability = 0.95))) |
| 51 | << ", Q93: " << DurationPrinter(static_cast< std::int64_t >(boost::accumulators::quantile(m_accumulator, boost::accumulators::quantile_probability = 0.93))) |
| 52 | << ", Q90: " << DurationPrinter(static_cast< std::int64_t >(boost::accumulators::quantile(m_accumulator, boost::accumulators::quantile_probability = 0.90))) |
| 53 | << ", Q50: " << DurationPrinter(static_cast< std::int64_t >(boost::accumulators::quantile(m_accumulator, boost::accumulators::quantile_probability = 0.50))) |
| 54 | ; |
| 55 | } |
| 56 | |
| 57 | } // namespace Tests |
| 58 | } // namespace Disruptor |