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 — test: use faster variant for rss in test-crypto-dh-leak · nodejs/node@cc37ff2

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/parallel
    • test-crypto-dh-leak.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/parallel/test-crypto-dh-leak.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-crypto-dh-leak.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ if (process.config.variables.asan)
1010
const assert = require('assert');
1111
const crypto = require('crypto');
1212

13-
const before = process.memoryUsage().rss;
13+
const before = process.memoryUsage.rss();
1414
{
1515
const dh = crypto.createDiffieHellman(common.hasFipsCrypto ? 1024 : 256);
1616
const publicKey = dh.generateKeys();
@@ -21,7 +21,7 @@ const before = process.memoryUsage().rss;
2121
}
2222
}
2323
global.gc();
24-
const after = process.memoryUsage().rss;
24+
const after = process.memoryUsage.rss();
2525

2626
// RSS should stay the same, ceteris paribus, but allow for
2727
// some slop because V8 mallocs memory during execution.

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.