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

An app's studio page names its Server-Timing phases: session, each read, render #3631

shipped production is serving it opened this has it
opened this

For: speed you can see, page by page. An app's studio page (studioApp in src/web/studio/app.ts, reached from a repository with an app through src/web/pages/repo.ts) 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/studio-app-timing.test.ts GETs the page and finds every phase name in Server-Timing. It fails without the change.

Files: src/web/studio/app.ts, test/studio-app-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