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

Method StartInstrumentation

be/src/util/thread.cc:199–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197};
198
199Status ThreadMgr::StartInstrumentation(MetricGroup* metrics) {
200 DCHECK(metrics != NULL);
201 lock_guard<mutex> l(lock_);
202 metrics_enabled_ = true;
203 total_threads_metric_ = metrics->AddGauge("thread-manager.total-threads-created", 0L);
204 current_num_threads_metric_ = metrics->AddGauge("thread-manager.running-threads", 0L);
205 return Status::OK();
206}
207
208void ThreadMgr::AddThread(const thread::id& thread, const string& name,
209 const string& category, int64_t tid) {

Callers 1

Calls 2

OKFunction · 0.85
AddGaugeMethod · 0.80

Tested by

no test coverage detected