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

Method getStats

src/index.ts:2408–2413  ·  view source on GitHub ↗

* Get statistics about the knowledge graph

()

Source from the content-addressed store, hash-verified

2406 * Get statistics about the knowledge graph
2407 */
2408 getStats(): GraphStats {
2409 const stats = this.queries.getStats();
2410 stats.dbSizeBytes = this.db.getSize();
2411 stats.walSizeBytes = this.db.getWalSizeBytes();
2412 return stats;
2413 }
2414
2415 /**
2416 * Active SQLite backend for this project's connection (`node-sqlite` — Node's

Calls 2

getSizeMethod · 0.80
getWalSizeBytesMethod · 0.80

Tested by 2

indexStateFunction · 0.36
graphCountsFunction · 0.36