| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent daad0ab commit cc37ff2
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,7 +10,7 @@ if (process.config.variables.asan) | |||
| 10 | 10 | const assert = require('assert'); | |
| 11 | 11 | const crypto = require('crypto'); | |
| 12 | 12 | ||
| 13 | - const before = process.memoryUsage().rss; | ||
| 13 | + const before = process.memoryUsage.rss(); | ||
| 14 | 14 | { | |
| 15 | 15 | const dh = crypto.createDiffieHellman(common.hasFipsCrypto ? 1024 : 256); | |
| 16 | 16 | const publicKey = dh.generateKeys(); | |
@@ -21,7 +21,7 @@ const before = process.memoryUsage().rss; | |||
| 21 | 21 | } | |
| 22 | 22 | } | |
| 23 | 23 | global.gc(); | |
| 24 | - const after = process.memoryUsage().rss; | ||
| 24 | + const after = process.memoryUsage.rss(); | ||
| 25 | 25 | ||
| 26 | 26 | // RSS should stay the same, ceteris paribus, but allow for | |
| 27 | 27 | // some slop because V8 mallocs memory during execution. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments