GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — http2: track nghttp2-allocated memory in heap snapshot · nodejs/node@bb77e6e

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src
    • node_http2.h
  • test/pummel
    • test-heapdump-http2.js
Expand file treeCollapse file tree
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)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.