diff --git a/src/node_http2.h b/src/node_http2.h index c70d3f5c2b6347..d4fc44618e0d49 100644 --- a/src/node_http2.h +++ b/src/node_http2.h @@ -794,6 +794,7 @@ class Http2Session : public AsyncWrap, tracker->TrackFieldWithSize("outgoing_storage", outgoing_storage_.size()); tracker->TrackFieldWithSize("pending_rst_streams", pending_rst_streams_.size() * sizeof(int32_t)); + tracker->TrackFieldWithSize("nghttp2_memory", current_nghttp2_memory_); } SET_MEMORY_INFO_NAME(Http2Session) diff --git a/test/pummel/test-heapdump-http2.js b/test/pummel/test-heapdump-http2.js index caece96d01cc72..b3d819edaef91a 100644 --- a/test/pummel/test-heapdump-http2.js +++ b/test/pummel/test-heapdump-http2.js @@ -69,6 +69,7 @@ server.listen(0, () => { { children: [ { node_name: 'Http2Session', edge_name: 'wrapped' }, + { node_name: 'Node / nghttp2_memory', edge_name: 'nghttp2_memory' }, { node_name: 'Node / streams', edge_name: 'streams' }