MCPcopy Create free account
hub / github.com/codag-megalith/codag-visualizer / getStats

Method getStats

frontend/src/cache.ts:1536–1553  ·  view source on GitHub ↗

* Get cache stats for debugging

()

Source from the content-addressed store, hash-verified

1534 * Get cache stats for debugging
1535 */
1536 async getStats(): Promise<{ fileCount: number; nodeCount: number; edgeCount: number }> {
1537 await this.initPromise;
1538
1539 let nodeCount = 0;
1540 let edgeCount = 0;
1541
1542 for (const fc of Object.values(this.files)) {
1543 nodeCount += fc.nodes.length;
1544 edgeCount += fc.internalEdges.length;
1545 }
1546 edgeCount += this.crossFileEdges.length;
1547
1548 return {
1549 fileCount: Object.keys(this.files).length,
1550 nodeCount,
1551 edgeCount
1552 };
1553 }
1554}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected