Skip to content

feat: add PhaseTimer RAII struct for transfer phase timing - #2982

Merged
oferchen merged 1 commit into
masterfrom
feat/phase-timing-instrumentation
Mar 22, 2026
Merged

oferchen merged 1 commit into
masterfrom
feat/phase-timing-instrumentation

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • Adds PhaseTimer RAII struct to logging crate that measures elapsed time for transfer phases
  • Logs phase start (level 2) and elapsed duration in ms (level 1) via debug_log!(Time, ...) on drop
  • Matches upstream rsync's --debug=TIME output format (options.c TIME flag)
  • Includes 3 unit tests: elapsed measurement, drop safety, name preservation

Test plan

  • CI passes fmt+clippy
  • Unit tests pass on all platforms
  • No changes to wire format or public API beyond new PhaseTimer export

…ation

Adds a PhaseTimer to the logging crate that measures elapsed time for
transfer phases and logs via debug_log!(Time, ...) on drop, matching
upstream rsync's --debug=TIME output format.
@github-actions github-actions Bot added the enhancement New feature or request label Mar 22, 2026
@oferchen
oferchen merged commit 3ddbd07 into master Mar 22, 2026
12 of 17 checks passed
@oferchen
oferchen deleted the feat/phase-timing-instrumentation branch March 22, 2026 19:25
oferchen added a commit that referenced this pull request May 1, 2026
…ation (#2982)

Adds a PhaseTimer to the logging crate that measures elapsed time for
transfer phases and logs via debug_log!(Time, ...) on drop, matching
upstream rsync's --debug=TIME output format.
oferchen added a commit that referenced this pull request May 5, 2026
…ation (#2982)

Adds a PhaseTimer to the logging crate that measures elapsed time for
transfer phases and logs via debug_log!(Time, ...) on drop, matching
upstream rsync's --debug=TIME output format.
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