Repository navigation
feat: live performance feed for a watching controller, and strobe --watch-perf (D567, L-10) - #121
Merged
Merged
Conversation
…d strobe --watch-perf prints it with no window (D567, L-10) A controller sends perf_open and gets one perf sample a second: frame rate, late and missed frames, worst gap, GPU and CPU time, render scale, the control window's cost by part, and the slowed and not-foreground states. The numbers come from the same counting as the minute perf: log line (PerfWindow::take_after). Only desktop controllers may ask; no lease and no picture stream are needed. Nothing is sent unasked, and an older host's "not understood" reply leaves the controller working without it. The desktop viewer draws a strip with a one-minute trend that warns on trouble and on old numbers. strobe --watch-perf HOST:PORT --remote-trust FILE proves the venue trust file, prints a line a second, appends CSV rows with --perf-csv, and stops after --perf-seconds.
Contributor
|
Claude finished @lnorton89's task in 20s —— View job Review of PR #121 (live perf feed, D567 / L-10)I read the core of the change: Rule checks
Correctness
Minor, non-blocking
Summary: No blocking issues found in the parts I read. The stale-slot point is the one thing I'd consider fixing before merge. The T480 soak and the two-machine look at the strip are still open, as the PR says. |
…'s unmaintained notice until R-10 (D568)
6 tasks done
…feed # Conflicts: # docs/DECISIONS_BY_AREA.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
A second computer can now watch a show's frame timing as it happens, without the JPEG stream of the control window (which costs the host redraws of its own).
perf_open/perf_closefrom the controller,perffrom the host once a second, only to connections that asked. Only desktop controllers (approved or venue-trusted) may ask; phones getunauthorized. No lease and no picture stream needed. Latest-only slot in the bridge (AppEnd::publish_perf), nothing queues.PerfWindow::take_afternow returns aPerfSummary; the minuteperf:log line and the one-second sample are both built from it, so they agree. The live window is fed only while the listener runs.strobe --watch-perf HOST:PORT --remote-trust FILE [--perf-csv FILE] [--perf-seconds N]: no window; proves the venue trust file, prints a line a second, appends flushed CSV rows, reconnects on the venue schedule, exits non-zero on a refusal or when no sample arrived.Mixed versions: a host never sends
perfunasked (older controllers close on unknown types). An older host answersperf_openwith "that message was not understood" (nowstrobe_remote::NOT_UNDERSTOOD), and the controller carries on without the feed (the D513 pattern).Decision:
docs/decisions/D567.md. Backlog: L-10. Docs: DEBUGGING.md, USER_GUIDE.md, ROADMAP.md, strobe-remote README.Verified
cargo fmt, clippy-D warningson strobe-remote and strobe-app (all targets, all features), rustdoc with CI's flags.perf_openwithout the lease, none afterperf_close), strobe-conventions, strobe-app (summary agreement, feed/strip logic, watcher with a real trusted host incl. CSV, wrong trust file, closed stdout, CLI).--remote --allow-desktop-control --remote-trust) watched for 8 s with--watch-perf; samples every second, whole CSV rows, host log shows the trusted pairing and "is watching the performance feed".Not done
perf:lines).strobe-remote'sa_command_the_phone_was_told_is_busy_is_not_run_when_the_app_catches_upfailed once under a parallel full run (50 ms command timeout) and passed 5/5 alone and 2/2 as a suite; it does not touch the rig this PR changed.