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

Function index_repo_timed

tests/test_incremental.c:128–134  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

126
127/* Timed index: returns response, sets *elapsed_ms and *peak_rss_mb */
128static char *index_repo_timed(double *elapsed_ms, size_t *peak_rss_mb) {
129 double t0 = now_ms();
130 char *resp = index_repo();
131 *elapsed_ms = now_ms() - t0;
132 *peak_rss_mb = cbm_mem_peak_rss() / (1024 * 1024);
133 return resp;
134}
135
136static char *call_tool(const char *tool, const char *args_fmt, ...) {
137 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