Repository navigation
Software path reports its own network telemetry (#306) - #320
Merged
Merged
Conversation
The byte counter every byte-shaped figure derives from was read through `nativeVideoSession`, which a software session does not own, so bitrate, throughput and transferred bytes were a hard zero for the whole session rather than the real numbers. It now reads the pump the memprobe has always read, software first, native second. Publishes what the path already computes for the 30 s memprobe: the decoded cushion (#303) as `displayCushionSeconds`, the reader's undrained forward extent as `readerWindowAheadBytes` (both paths), and the render synchronizer's dropped / late frames, which fills `droppedFrameCount` on a path that used to leave it nil. `forwardBufferSeconds` stays nil on the software path on purpose. The demux loop reads on renderer back-pressure, so there is no seconds-deep reservoir of arrived-but-unplayed media there, and publishing the sub-second cushion under that name would report a near-stall on a session that is playing perfectly. `aetherctl play` appends the same fields to its 1 Hz line, which is how this was verified against a real VP9 session over a rate-limited origin: rx 0.4 -> 10.7 MB, net 3.3 -> 6.6 Mbps, ahead to 7.6 MB, cushion 0.19 to 0.48 s, where every one of those read zero or nothing before. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01HX5zV3Fcf7Nzq4DYGdXvQE
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.
Closes the telemetry gap reported in #306: on a software session the Network section of a host's stats overlay had nothing truthful to put in it.
Two defects, one symptom
The byte counter was native-only.
AetherEngine.demuxerBytesFetchedread throughnativeVideoSession, which a software session does not own, so it returned 0 for the entire session. Everything derived from it (instant bitrate, average bitrate,networkThroughputMbps,networkTransferredBytes,LiveTelemetry.demuxerBytesFetched) was therefore a hard zero on the one path that carries VP9, AV1 without hardware decode and MPEG-4 Part 2. It now reads the pump with the precedence the memprobe has always used, software first, native second.The read-ahead was computed for the log only. The cushion from #303 and the reader's sliding window existed but never reached the public snapshot.
What is published now
displayCushionSecondsreaderWindowAheadBytesaccumulatedFrameDelaySecondsdroppedFrameCountvideoPerformanceMetricsforwardBufferSecondsdeliberately stays nil on software. The demux loop reads on renderer back-pressure, so there is no seconds-deep reservoir of arrived-but-unplayed media on that path, and publishing the sub-second cushion under the native path's name would report a near-stall on a healthy session. That is the same reasoning the reporter used to leave the rows blank rather than publishbufferedPosition, and it is what the extra fields exist for.Verification
aetherctl playnow appends the network half of the snapshot to its 1 Hz line. Real VP9 session, rate-limited logging origin (30 ms latency, 8 Mbps):Every one of those read zero or nothing before. The native arm of the same harness is unchanged:
fwdpresent,cushion/delaynil,aheadnow populated from the pump reader. The climbing drop count is a headless-CLI artifact, nothing binds a render surface there.Unit coverage in
Issue306SoftwareTelemetryTests: counter precedence, the software fields reaching the snapshot, nil rather than zero when the metrics cannot be asked for, the teardown seam during the async metrics read, and the native path leaving the software fields nil. Full suite green (1531 tests).