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

Method DumperThread

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

Source from the content-addressed store, hash-verified

84}
85
86void TimeSeriesCollector::DumperThread() {
87 CHECK(started_);
88 WallTime start_time = WallTime_Now();
89
90 faststring metrics_str;
91 while (true) {
92 metrics_str.clear();
93 metrics_str.append("metrics: ");
94 BuildMetricsString(WallTime_Now() - start_time, &metrics_str);
95 LOG(INFO) << metrics_str.ToString();
96
97 // Sleep until next dump time, or return if we should exit
98 if (exit_latch_.WaitFor(MonoDelta::FromMilliseconds(250))) {
99 return;
100 }
101 }
102}
103
104void TimeSeriesCollector::BuildMetricsString(
105 WallTime time_since_start, faststring* dst_buf) const {

Callers 1

StartDumperThreadMethod · 0.95

Calls 5

WallTime_NowFunction · 0.85
clearMethod · 0.65
appendMethod · 0.45
ToStringMethod · 0.45
WaitForMethod · 0.45

Tested by

no test coverage detected