| 295 | } |
| 296 | |
| 297 | static string ToString(kudu::HistogramPrototype& metric, |
| 298 | const scoped_refptr<kudu::MetricEntity>& metric_entity, TUnit::type unit) { |
| 299 | kudu::HdrHistogram snapshot(*metric.Instantiate(metric_entity)->histogram()); |
| 300 | return HistogramMetric::HistogramToHumanReadable(&snapshot, unit); |
| 301 | } |
| 302 | |
| 303 | void RpcMgr::ToJson(Document* document) { |
| 304 | if (messenger_.get() == nullptr) return; |
no test coverage detected