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
"
5
#include "
tracing/node_trace_buffer.h
"
6
#include "
tracing/node_trace_writer.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_
node::tracing::Agent::Agent
Agent()
Definition:
agent.cc:14
node::tracing::Agent::Start
void Start(const std::string &enabled_categories)
node_trace_writer.h
node::tracing::Agent
Definition:
agent.h:13
node
Definition:
async-wrap.cc:62
node_platform.h
node::tracing::Agent::GetTracingController
TracingController * GetTracingController()
Definition:
agent.h:19
node::tracing::Agent::Stop
void Stop()
Definition:
agent.cc:49
node_trace_buffer.h
src
tracing
agent.h
Generated on Fri Sep 15 2017 12:56:44 for Node.js by
1.8.13