We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c9c1bb commit 56edd5fCopy full SHA for 56edd5f
src/tracing/agent.cc
@@ -2,6 +2,8 @@
2
3
#include <string>
4
#include "tracing/node_trace_buffer.h"
5
+#include "debug_utils.h"
6
+#include "env-inl.h"
7
8
namespace node {
9
namespace tracing {
@@ -53,6 +55,10 @@ Agent::Agent() {
53
55
CHECK_EQ(uv_loop_init(&tracing_loop_), 0);
54
56
}
57
58
+Agent::~Agent() {
59
+ CheckedUvLoopClose(&tracing_loop_);
60
+}
61
+
62
void Agent::Start() {
63
if (started_)
64
return;
src/tracing/agent.h
@@ -64,6 +64,7 @@ class AgentWriterHandle {
class Agent {
65
public:
66
Agent();
67
+ ~Agent();
68
69
TracingController* GetTracingController() { return tracing_controller_; }
70
0 commit comments