Files
buzz/desktop/tests
Max Lampert 370c6687cf perf(desktop): trace channel switches from click to settled paint
Add a single-active-trace instrument for channel navigation: goChannel
opens the trace, ChannelScreen marks route commit and settles it after
the timeline loading latch clears (double rAF so the frame painted).
The two relay fetches that can sit on the switch path — the message
window and the member roster — are attributed to the trace when they
run during it; cache-served switches log "cache".

Each switch emits one [switch-perf] console line plus User Timing
marks/measures (buzz:channel-switch:*) so before/after comparisons work
identically in a dev build, the Performance panel, and Playwright perf
specs.

Signed-off-by: Max Lampert <maxwell@squareup.com>
2026-08-26 12:33:25 -07:00
..