perf(mcp): report search phase timings - #1605
Conversation
|
Thanks for opening this — it has been seen, and it is queued. This note is automated, but it is not a brush-off: it exists so you know where your PR stands instead of having to guess from silence. Current review status: working through a backlog. What that means for this PR, concretely:
Things that will genuinely speed it up whenever review does happen:
If this fixes a bug, a reproduction we can run is worth more than a description of the symptom. Thanks for contributing, and sorry in advance for the wait. |
|
Maintainer decision: yes, but behind a debug flag rather than always on. The diagnostic value is real — So the ask is to gate it — a The measurement work itself is good and the split you chose (scope / scan / enrich) is the right one — it separates the three phases we would actually want to distinguish. Happy to take it once it is behind the flag. |
Signed-off-by: Ertan <ertan.kucukoglu@gmail.com>
|
Updated as requested and rebased onto current main. The three phase timings are now omitted by default and exposed only when search_code receives debug:true; the existing elapsed_ms behavior is unchanged. Tests cover the default absence plus debug output in compact tree and JSON formats. |
526c573 to
2eb46cf
Compare
|
Checked it rather than taking it on trust — That is exactly the shape we wanted, turned around fast. Merging once CI clears. Worth saying why the flag mattered rather than it being bureaucracy: Your #1606 is already merged, and #1604 is next up in your cluster: it is results-preserving by construction, so it wants to land before #1607/#1608 rather than after. |
What does this PR do?
Adds phase-level timing counters to
search_coderesults:scope_msscan_msenrich_msThe existing
elapsed_msfield is preserved. All four timing fields are included in both the default tree output and JSON output.Adds regression coverage for both output formats.
Test results: 7352 passed, 0 failed, 63 skipped.
Part of #1565
Checklist
git commit -s) — required, CI rejectsunsigned commits (DCO, see CONTRIBUTING.md)
make -f Makefile.cbm test)make -f Makefile.cbm lint-ci)