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

Method getStats

src/index.ts:2349–2354  ·  view source on GitHub ↗

* Get statistics about the knowledge graph

()

Source from the content-addressed store, hash-verified

2347 * Get statistics about the knowledge graph
2348 */
2349 getStats(): GraphStats {
2350 const stats = this.queries.getStats();
2351 stats.dbSizeBytes = this.db.getSize();
2352 stats.walSizeBytes = this.db.getWalSizeBytes();
2353 return stats;
2354 }
2355
2356 /**
2357 * 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