enclose-io/compiler

View on GitHub
lts/src/tracing/trace_event.cc

Summary

Maintainability
Test Coverage
#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