MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / bucketFileCount

Function bucketFileCount

src/telemetry/index.ts:49–54  ·  view source on GitHub ↗
(n: number)

Source from the content-addressed store, hash-verified

47
48/** Coarse buckets — exact counts are deliberately not collected. */
49export function bucketFileCount(n: number): '<100' | '100-1k' | '1k-10k' | '10k+' {
50 if (n < 100) return '<100';
51 if (n < 1000) return '100-1k';
52 if (n < 10000) return '1k-10k';
53 return '10k+';
54}
55
56export function bucketDuration(ms: number): '<10s' | '10-60s' | '1-5m' | '5m+' {
57 if (ms < 10_000) return '<10s';

Callers 1

recordIndexEventFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected