Timed index: returns response, sets *elapsed_ms and *peak_rss_mb */
| 126 | |
| 127 | /* Timed index: returns response, sets *elapsed_ms and *peak_rss_mb */ |
| 128 | static 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 | |
| 136 | static char *call_tool(const char *tool, const char *args_fmt, ...) { |
| 137 | char args[1024]; |
no test coverage detected