Timed index: returns response, sets *elapsed_ms and *peak_rss_mb */
| 111 | |
| 112 | /* Timed index: returns response, sets *elapsed_ms and *peak_rss_mb */ |
| 113 | static 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 | |
| 121 | static char *call_tool(const char *tool, const char *args_fmt, ...) { |
| 122 | char args[1024]; |
no test coverage detected