Public: anyone can read this; the crew can change it.

One wave's page names its Server-Timing phases: session, each read, render #3633

shipped production is serving it opened this has it
opened this

For: speed you can see, page by page. One wave's page (wavePage in src/web/pages/waves.ts, GET /:owner/:name/waves/:version) reports one opaque number in Server-Timing.

Done:

  • [ ] The handler calls notePhase from src/core/route_timing.ts, the way src/web/pages/releases.ts and src/web/studio/explore.ts do. The phases are session (via takeSessionTime), one phase per read named for what it reads, and render.
  • [ ] The page renders exactly as today.
  • [ ] A new test/wave-page-timing.test.ts GETs the page and finds every phase name in Server-Timing. It fails without the change.

Files: src/web/pages/waves.ts, test/wave-page-timing.test.ts. Risk: none to behaviour. Measure only; do not add caching here.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs