@@ -94,10 +94,15 @@ void Agent::Start() {
|
94 | 94 | // This thread should be created *after* async handles are created |
95 | 95 | // (within NodeTraceWriter and NodeTraceBuffer constructors). |
96 | 96 | // Otherwise the thread could shut down prematurely. |
97 | | -CHECK_EQ(0, uv_thread_create(&thread_, [](void* arg) { |
98 | | - Agent* agent = static_cast<Agent*>(arg); |
99 | | -uv_run(&agent->tracing_loop_, UV_RUN_DEFAULT); |
100 | | - }, this)); |
| 97 | +CHECK_EQ(0, |
| 98 | +uv_thread_create( |
| 99 | + &thread_, |
| 100 | + [](void* arg) { |
| 101 | +uv_thread_setname("TraceEventWorker"); |
| 102 | + Agent* agent = static_cast<Agent*>(arg); |
| 103 | +uv_run(&agent->tracing_loop_, UV_RUN_DEFAULT); |
| 104 | + }, |
| 105 | +this)); |
101 | 106 | started_ = true; |
102 | 107 | } |
103 | 108 | |
|