summaryrefslogtreecommitdiff
path: root/src/node_http2.h
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2019-12-01 01:40:55 +0100
committerAnna Henningsen <anna@addaleax.net>2019-12-07 22:55:18 +0100
commit2579ea8795459d9fd85ff241f997c5b2f142b44d (patch)
tree1140d2a66356aada9fbf96fa215ca61527b356cc /src/node_http2.h
parent933bd855e240d41e91a3dda2618a16513278f378 (diff)
downloadandroid-node-v8-2579ea8795459d9fd85ff241f997c5b2f142b44d.tar.gz
android-node-v8-2579ea8795459d9fd85ff241f997c5b2f142b44d.tar.bz2
android-node-v8-2579ea8795459d9fd85ff241f997c5b2f142b44d.zip
http2: track nghttp2-allocated memory in heap snapshot
PR-URL: https://github.com/nodejs/node/pull/30745 Refs: https://github.com/nodejs/quic/blob/34ee0bc96f804c73cb22b2945a1a78f780938492/src/node_mem.h Refs: https://github.com/nodejs/quic/pull/126 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'src/node_http2.h')
-rw-r--r--src/node_http2.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/node_http2.h b/src/node_http2.h
index 1812cba51f..07febd7da4 100644
--- a/src/node_http2.h
+++ b/src/node_http2.h
@@ -792,6 +792,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)