MCPcopy Create free account
hub / github.com/apache/impala / BuildMetricsString

Method BuildMetricsString

be/src/kudu/util/test_graph.cc:104–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104void 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

Callers

nothing calls this directly

Calls 3

StringPrintfFunction · 0.85
appendMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected