Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/nodejs/node
/ checkMemoryUsage
Function
checkMemoryUsage
test/parallel/test-stream-readable-to-web.mjs:12–14 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
10
const
MAX_MEM = 256 * 1024 * 1024;
// 256 MiB
11
12
function
checkMemoryUsage() {
13
assert(memoryUsage().arrayBuffers < MAX_MEM);
14
}
15
16
const
MAX_BUFFERS = 1000;
17
let
buffersCreated = 0;
Callers
1
test-stream-readable-to-web.mjs
File · 0.85
Calls
2
memoryUsage
Function · 0.85
assert
Function · 0.50
Tested by
no test coverage detected