MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / getMemorySnapshot

Function getMemorySnapshot

packages/cli/src/commands/render.ts:1474–1479  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1472}
1473
1474function getMemorySnapshot() {
1475 return {
1476 peakMemoryMb: bytesToMb(process.memoryUsage.rss()),
1477 memoryFreeMb: bytesToMb(freemem()),
1478 };
1479}
1480
1481function metaString(meta: Record<string, unknown> | undefined, key: string): string | undefined {
1482 const value = meta?.[key];

Callers 3

renderDockerFunction · 0.85
handleRenderErrorFunction · 0.85
trackRenderMetricsFunction · 0.85

Calls 1

bytesToMbFunction · 0.85

Tested by

no test coverage detected