| 197 | }; |
| 198 | |
| 199 | Status 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 | |
| 208 | void ThreadMgr::AddThread(const thread::id& thread, const string& name, |
| 209 | const string& category, int64_t tid) { |
no test coverage detected