GCC Code Coverage Report
Directory: ../ Exec Total Coverage
File: /home/iojs/build/workspace/node-test-commit-linux-coverage/nodes/benchmark/out/../src/tracing/agent.h Lines: 1 1 100.0 %
Date: 2017-10-21 Branches: 0 0 0.0 %

Line Branch Exec Source
1
#ifndef SRC_TRACING_AGENT_H_
2
#define SRC_TRACING_AGENT_H_
3
4
#include "libplatform/v8-tracing.h"
5
#include "uv.h"
6
#include "v8.h"
7
8
namespace node {
9
namespace tracing {
10
11
using v8::platform::tracing::TracingController;
12
13
class Agent {
14
 public:
15
  Agent();
16
  void Start(const std::string& enabled_categories);
17
  void Stop();
18
19
6
  TracingController* GetTracingController() { return tracing_controller_; }
20
21
 private:
22
  static void ThreadCb(void* arg);
23
24
  uv_thread_t thread_;
25
  uv_loop_t tracing_loop_;
26
  bool started_ = false;
27
  TracingController* tracing_controller_ = nullptr;
28
};
29
30
}  // namespace tracing
31
}  // namespace node
32
33
#endif  // SRC_TRACING_AGENT_H_