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

Function index_repo_timed

tests/test_incremental.c:113–119  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

111
112/* Timed index: returns response, sets *elapsed_ms and *peak_rss_mb */
113static char *index_repo_timed(double *elapsed_ms, size_t *peak_rss_mb) {
114 double t0 = now_ms();
115 char *resp = index_repo();
116 *elapsed_ms = now_ms() - t0;
117 *peak_rss_mb = cbm_mem_peak_rss() / (1024 * 1024);
118 return resp;
119}
120
121static char *call_tool(const char *tool, const char *args_fmt, ...) {
122 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