Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bb77e6e

Browse filesBrowse files
addaleaxtargos
authored andcommitted
http2: track nghttp2-allocated memory in heap snapshot
PR-URL: #30745 Refs: https://github.com/nodejs/quic/blob/34ee0bc96f804c73cb22b2945a1a78f780938492/src/node_mem.h Refs: nodejs/quic#126 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent 284f033 commit bb77e6e
Copy full SHA for bb77e6e

File tree

Expand file treeCollapse file tree

2 files changed

+2
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+2
-0
lines changed
Open diff view settings
Collapse file

‎src/node_http2.h‎

Copy file name to clipboardExpand all lines: src/node_http2.h
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -794,6 +794,7 @@ class Http2Session : public AsyncWrap,
794794
tracker->TrackFieldWithSize("outgoing_storage", outgoing_storage_.size());
795795
tracker->TrackFieldWithSize("pending_rst_streams",
796796
pending_rst_streams_.size() * sizeof(int32_t));
797+
tracker->TrackFieldWithSize("nghttp2_memory", current_nghttp2_memory_);
797798
}
798799

799800
SET_MEMORY_INFO_NAME(Http2Session)
Collapse file

‎test/pummel/test-heapdump-http2.js‎

Copy file name to clipboardExpand all lines: test/pummel/test-heapdump-http2.js
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ server.listen(0, () => {
6969
{
7070
children: [
7171
{ node_name: 'Http2Session', edge_name: 'wrapped' },
72+
{ node_name: 'Node / nghttp2_memory', edge_name: 'nghttp2_memory' },
7273
{
7374
node_name: 'Node / streams', edge_name: 'streams'
7475
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.