| 102 | } |
| 103 | |
| 104 | void TimeSeriesCollector::BuildMetricsString( |
| 105 | WallTime time_since_start, faststring* dst_buf) const { |
| 106 | MutexLock l(series_lock_); |
| 107 | |
| 108 | dst_buf->append(StringPrintf("{ \"scope\": \"%s\", \"time\": %.3f", |
| 109 | scope_.c_str(), time_since_start)); |
| 110 | |
| 111 | for (SeriesMap::const_reference entry : series_map_) { |
| 112 | dst_buf->append(StringPrintf(", \"%s\": %.3f", |
| 113 | entry.first.c_str(), entry.second->value())); |
| 114 | } |
| 115 | dst_buf->append("}"); |
| 116 | } |
| 117 | |
| 118 | } // namespace kudu |
nothing calls this directly
no test coverage detected