* Get cache stats for debugging
()
| 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected