Repository navigation
[XProf: trace viewer] Add Live Trace Viewer MVP with streaming controls - #3791
Merged
Merged
Conversation
copybara-service
Bot
force-pushed
the
test_960586374
branch
from
October 10, 2026 05:38
bca6797 to
73c5b08
Compare
Add an MVP "Live Trace Viewer" that incrementally polls trace snapshots and renders them with timeline alignment and a fixed sliding window. - live_trace_viewer component: adds four manual controls (Start/Stop Profiling as placeholders, Start/Stop Streaming). Streaming polls snapshots via an incrementing snapshot_id, aligns each snapshot to the session timeline using snapshot_baseline_ns, keeps a 10s sliding window (dropping older timed events while retaining metadata), and auto-follows the newest window. - trace_viewer_v2: adds a module-level setVisibleRange(startUs, endUs) binding so the frontend can pin the viewport to the latest streaming window. PiperOrigin-RevId: 996955051
copybara-service
Bot
force-pushed
the
test_960586374
branch
from
October 10, 2026 05:56
73c5b08 to
181a425
Compare
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.
[XProf: trace viewer] Add Live Trace Viewer MVP with streaming controls
Add an MVP "Live Trace Viewer" that incrementally polls trace snapshots and
renders them with timeline alignment and a fixed sliding window.
as placeholders, Start/Stop Streaming). Streaming polls snapshots via an
incrementing snapshot_id, aligns each snapshot to the session timeline using
snapshot_baseline_ns, keeps a 10s sliding window (dropping older timed events
while retaining metadata), and auto-follows the newest window.
so the frontend can pin the viewport to the latest streaming window.