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

Function getLowMemoryFlags

packages/engine/src/services/browserManager.ts:607–612  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

605}
606
607function getLowMemoryFlags(): string[] {
608 const total = getSystemTotalMb();
609 if (total > LOW_MEMORY_TOTAL_MB_THRESHOLD) return [];
610 const heapMb = total < 4096 ? 256 : 512;
611 return [`--js-flags=--max-old-space-size=${heapMb}`];
612}
613
614export interface BuildChromeArgsOptions {
615 width: number;

Callers 1

buildChromeArgsFunction · 0.85

Calls 1

getSystemTotalMbFunction · 0.85

Tested by

no test coverage detected