MCPcopy Create free account
hub / github.com/avoidwork/tenso / snapshot

Method snapshot

benchmarks/memory.js:34–45  ·  view source on GitHub ↗

* Takes a memory snapshot

(label)

Source from the content-addressed store, hash-verified

32 * Takes a memory snapshot
33 */
34 snapshot (label) {
35 this.forceGC();
36 const usage = process.memoryUsage();
37 const snapshot = {
38 label,
39 timestamp: Date.now(),
40 ...usage
41 };
42 this.snapshots.push(snapshot);
43
44 return snapshot;
45 }
46
47 /**
48 * Calculates memory difference between two snapshots

Callers 8

testServerLifecycleFunction · 0.95
testRequestProcessingFunction · 0.95
testParserMemoryFunction · 0.95
testRendererMemoryFunction · 0.95
testRateLimitMemoryFunction · 0.95
testMemoryLeaksFunction · 0.95
testHypermediaMemoryFunction · 0.95
testMemoryPressureFunction · 0.95

Calls 1

forceGCMethod · 0.95

Tested by

no test coverage detected