GCC Code Coverage Report
Directory: ../ Exec Total Coverage
File: /home/iojs/build/workspace/node-test-commit-linux-coverage-daily/nodes/benchmark/out/../src/tracing/trace_event.cc Lines: 11 11 100.0 %
Date: 2020-05-27 22:15:15 Branches: 0 0 - %

Line Branch Exec Source
1
#include "tracing/trace_event.h"
2
3
namespace node {
4
namespace tracing {
5
6
Agent* g_agent = nullptr;
7
v8::TracingController* g_controller = nullptr;
8
9
4266
void TraceEventHelper::SetAgent(Agent* agent) {
10
4266
  g_agent = agent;
11
4266
  g_controller = agent->GetTracingController();
12
4266
}
13
14
981
Agent* TraceEventHelper::GetAgent() {
15
981
  return g_agent;
16
}
17
18
840097
v8::TracingController* TraceEventHelper::GetTracingController() {
19
840097
  return g_controller;
20
}
21
22
4271
void TraceEventHelper::SetTracingController(v8::TracingController* controller) {
23
4271
  g_controller = controller;
24
4271
}
25
26
}  // namespace tracing
27
}  // namespace node