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

Method GetTimeSeries

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

Source from the content-addressed store, hash-verified

57}
58
59shared_ptr<TimeSeries> TimeSeriesCollector::GetTimeSeries(const string& key) {
60 MutexLock l(series_lock_);
61 SeriesMap::const_iterator it = series_map_.find(key);
62 if (it != series_map_.end()) {
63 return (*it).second;
64 }
65
66 auto ts(std::make_shared<TimeSeries>());
67 series_map_[key] = ts;
68 return ts;
69}
70
71void TimeSeriesCollector::StartDumperThread() {
72 LOG(INFO) << "Starting metrics dumper";

Callers

nothing calls this directly

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected