MCPcopy Create free account
hub / github.com/modem-dev/hunk / maybeGc

Function maybeGc

benchmarks/navigation-memory.ts:142–146  ·  view source on GitHub ↗
(enabled: boolean)

Source from the content-addressed store, hash-verified

140}
141
142function maybeGc(enabled: boolean) {
143 if (enabled) {
144 Bun.gc(true);
145 }
146}
147
148function sampleMemory(label: string, navigation: number, options: CliOptions): MemorySample {
149 maybeGc(options.gc);

Callers 1

sampleMemoryFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected