MCPcopy Create free account
hub / github.com/apache/brpc / TraceImpl

Method TraceImpl

src/bthread/task_tracer.cpp:194–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192}
193
194TaskTracer::Result TaskTracer::TraceImpl(bthread_t tid) {
195 butil::Timer timer(butil::Timer::STARTED);
196 BRPC_SCOPE_EXIT {
197 timer.stop();
198 _trace_time << timer.n_elapsed();
199 };
200
201 if (tid == bthread_self() ||
202 (NULL != pthread_fake_meta && tid == pthread_fake_meta->tid)) {

Callers

nothing calls this directly

Calls 2

n_elapsedMethod · 0.80
stopMethod · 0.45

Tested by

no test coverage detected