Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/socketio/socket.io
/ formatSize
Function
formatSize
packages/engine.io/examples/memory-usage/server.js:28–30 ·
view source on GitHub ↗
(val)
Source
from the content-addressed store, hash-verified
26
}, EMIT_INTERVAL_MS);
27
28
function
formatSize(val) {
29
return
Math.floor(val / 1024);
30
}
31
32
setInterval(() => {
33
const
mem = process.memoryUsage();
Callers
1
server.js
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected