MCPcopy Create free account
hub / github.com/callumalpass/tasknotes / logMetric

Function logMetric

tests/performance/dependencyCache.performance.test.ts:131–135  ·  view source on GitHub ↗
(label: string, metric: Record<string, number>)

Source from the content-addressed store, hash-verified

129}
130
131function logMetric(label: string, metric: Record<string, number>): void {
132 if (process.env.TN_PERF_LOG === "1") {
133 process.stderr.write(`[dependency-cache-perf] ${label} ${JSON.stringify(metric)}\n`);
134 }
135}
136
137describe("DependencyCache performance smoke", () => {
138 it("measures large-graph build, edit, and read-heavy paths", async () => {

Calls

no outgoing calls

Tested by

no test coverage detected