Skip to content

feat: add PhaseTimer RAII instrumentation to transfer hot paths - #2986

Merged
oferchen merged 2 commits into
masterfrom
feat/phase-timer-instrumentation
Mar 22, 2026
Merged

oferchen merged 2 commits into
masterfrom
feat/phase-timer-instrumentation

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • Add PhaseTimer RAII timing to generator run() - wraps file-list-build-send and transfer-loop phases
  • Add PhaseTimer to file list sort section in build_file_list()
  • Add PhaseTimer to send_file_list() wire encoding
  • Add PhaseTimer to all three receiver entry points: run_sync, run_pipelined, run_pipelined_incremental
  • Timers emit --debug=TIME output matching upstream rsync format
  • Zero overhead when TIME debug flag is not enabled (RAII drop is a no-op check)

Test plan

  • CI passes - no behavioral changes, only debug logging additions
  • Run with --debug=TIME to verify timing output

@github-actions github-actions Bot added the enhancement New feature or request label Mar 22, 2026
@oferchen
oferchen force-pushed the feat/phase-timer-instrumentation branch from 4575482 to b3b11fa Compare March 22, 2026 20:08
@oferchen
oferchen merged commit db88c84 into master Mar 22, 2026
4 of 9 checks passed
@oferchen
oferchen deleted the feat/phase-timer-instrumentation branch March 22, 2026 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant