MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / index_repo_timed

Function index_repo_timed

tests/test_incremental.c:114–120  ·  view source on GitHub ↗

Timed index: returns response, sets *elapsed_ms and *peak_rss_mb */

Source from the content-addressed store, hash-verified

112
113/* Timed index: returns response, sets *elapsed_ms and *peak_rss_mb */
114static char *index_repo_timed(double *elapsed_ms, size_t *peak_rss_mb) {
115 double t0 = now_ms();
116 char *resp = index_repo();
117 *elapsed_ms = now_ms() - t0;
118 *peak_rss_mb = cbm_mem_peak_rss() / (1024 * 1024);
119 return resp;
120}
121
122static char *call_tool(const char *tool, const char *args_fmt, ...) {
123 char args[1024];

Callers 1

test_incremental.cFile · 0.85

Calls 3

index_repoFunction · 0.85
cbm_mem_peak_rssFunction · 0.85
now_msFunction · 0.70

Tested by

no test coverage detected