Node.js  v8.x
Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine
agent.h
Go to the documentation of this file.
1 #ifndef SRC_TRACING_AGENT_H_
2 #define SRC_TRACING_AGENT_H_
3 
4 #include "node_platform.h"
7 #include "uv.h"
8 #include "v8.h"
9 
10 namespace node {
11 namespace tracing {
12 
13 class Agent {
14  public:
15  Agent();
16  void Start(const std::string& enabled_categories);
17  void Stop();
18 
19  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_
void Start(const std::string &enabled_categories)
TracingController * GetTracingController()
Definition: agent.h:19