summaryrefslogtreecommitdiff
path: root/src/node_zlib.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/node_zlib.cc')
-rw-r--r--src/node_zlib.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/node_zlib.cc b/src/node_zlib.cc
index 5def50d3b9..6e99f68108 100644
--- a/src/node_zlib.cc
+++ b/src/node_zlib.cc
@@ -661,14 +661,13 @@ class ZCtx : public AsyncWrap, public ThreadPoolWork {
}
void MemoryInfo(MemoryTracker* tracker) const override {
- tracker->TrackThis(this);
tracker->TrackField("dictionary", dictionary_);
- tracker->TrackFieldWithSize("zlib memory",
- zlib_memory_ + unreported_allocations_);
+ tracker->TrackFieldWithSize("zlib_memory",
+ zlib_memory_ + unreported_allocations_);
}
-
- ADD_MEMORY_INFO_NAME(ZCtx)
+ SET_MEMORY_INFO_NAME(ZCtx)
+ SET_SELF_SIZE(ZCtx)
private:
void Ref() {