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: 16 16 100.0 %
Date: 2021-04-09 04:13:47 Branches: 0 0 - %

Line Branch Exec Source
1
#include "tracing/trace_event.h"
2
#include "node.h"
3
4
namespace node {
5
namespace tracing {
6
7
Agent* g_agent = nullptr;
8
v8::TracingController* g_controller = nullptr;
9
10
4698
void TraceEventHelper::SetAgent(Agent* agent) {
11
4698
  g_agent = agent;
12
4698
  g_controller = agent->GetTracingController();
13
4698
}
14
15
972
Agent* TraceEventHelper::GetAgent() {
16
972
  return g_agent;
17
}
18
19
1187223
v8::TracingController* TraceEventHelper::GetTracingController() {
20
1187223
  return g_controller;
21
}
22
23
4707
void TraceEventHelper::SetTracingController(v8::TracingController* controller) {
24
4707
  g_controller = controller;
25
4707
}
26
27
}  // namespace tracing
28
29
3
v8::TracingController* GetTracingController() {
30
3
  return tracing::TraceEventHelper::GetTracingController();
31
}
32
33
4707
void SetTracingController(v8::TracingController* controller) {
34
4707
  tracing::TraceEventHelper::SetTracingController(controller);
35
4707
}
36
37
}  // namespace node