MCPcopy Create free account
hub / github.com/codemix/graph / statistics

Method statistics

packages/graph/src/indexes/IndexManager.ts:461–474  ·  view source on GitHub ↗

* Get statistics for all built indexes.

()

Source from the content-addressed store, hash-verified

459 * Get statistics for all built indexes.
460 */
461 public statistics(): Record<string, IndexStatistics & { type: string }> {
462 const stats: Record<string, IndexStatistics & { type: string }> = {};
463
464 for (const [key, index] of this.#indexes) {
465 if (this.#built.has(key)) {
466 stats[key] = {
467 ...index.statistics(),
468 type: index.type,
469 };
470 }
471 }
472
473 return stats;
474 }
475
476 /**
477 * Clear all indexes.

Callers

nothing calls this directly

Calls 2

statisticsMethod · 0.65
hasMethod · 0.45

Tested by

no test coverage detected