mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
http2: track nghttp2-allocated memory in heap snapshot
PR-URL: https://github.com/nodejs/node/pull/30745
Refs: 34ee0bc96f/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>
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user