summaryrefslogtreecommitdiff
path: root/src/node_dir.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/node_dir.cc')
-rw-r--r--src/node_dir.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/node_dir.cc b/src/node_dir.cc
index 9d145131be..37285928fb 100644
--- a/src/node_dir.cc
+++ b/src/node_dir.cc
@@ -1,10 +1,11 @@
#include "node_dir.h"
+#include "node_file-inl.h"
#include "node_process.h"
+#include "memory_tracker-inl.h"
#include "util.h"
#include "tracing/trace_event.h"
-#include "req_wrap-inl.h"
#include "string_bytes.h"
#include <fcntl.h>
@@ -85,6 +86,10 @@ DirHandle::~DirHandle() {
CHECK(closed_); // We have to be closed at the point
}
+void DirHandle::MemoryInfo(MemoryTracker* tracker) const {
+ tracker->TrackFieldWithSize("dir", sizeof(*dir_));
+}
+
// Close the directory handle if it hasn't already been closed. A process
// warning will be emitted using a SetImmediate to avoid calling back to
// JS during GC. If closing the fd fails at this point, a fatal exception