lts/src/tracing/trace_event.cc
#include "tracing/trace_event.h"
namespace node {
namespace tracing {
Agent* g_agent = nullptr;
void TraceEventHelper::SetAgent(Agent* agent) {
g_agent = agent;
}
Agent* TraceEventHelper::GetAgent() {
return g_agent;
}
TracingController* TraceEventHelper::GetTracingController() {
return g_agent->GetTracingController();
}
} // namespace tracing
} // namespace node