Skip to content

[XProf: trace viewer] Add Live Trace Viewer MVP with streaming controls - #3791

Merged
copybara-service[bot] merged 1 commit into
masterfrom
test_960586374
Oct 10, 2026
Merged

copybara-service[bot] merged 1 commit into
masterfrom
test_960586374

Conversation

@copybara-service

Copy link
Copy Markdown

[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.

  • 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.

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
copybara-service Bot merged commit 181a425 into master Oct 10, 2026
3 checks passed
@copybara-service
copybara-service Bot deleted the test_960586374 branch October 10, 2026 05:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant