Commit Graph
9 Commits
Author SHA1 Message Date
swaits dc876b5a5c Dashboard page: fit the page, five shares, build-time histograms
- Built is the miss count, as sccache counts timeouts, cache errors and
  forced recaches inside it. The bar under the headline has five shares
  that add up to every compiler call and always to 100%; what happened
  inside the built share is one line under the bar.
- The time saved shows its 90% range in small print under the figure.
- Speed gains "How long builds take, by language": one fixed-height
  histogram per language on a shared log scale of build time, with the
  mean, median and p90 marked.
- The api crate's Range helpers replace the page's own copies.
- Drawing is built only for the browser, so the tests (and the rest of
  the crate) build anywhere without eframe's native backends.
- Tables are drawn row by row; egui's Grid lost its rows when a cell
  held more than a plain widget. Fold-away bodies are held to the width
  of the page, and the charts fit their data every frame.
- mise.toml takes trunk 0.22.2 as a release binary; building it from
  source took over half an hour.
2026-11-28 12:10:01 -07:00
swaits c589b7c868 Merge branch 'main' into t3/dashboard-ui-page 2026-11-28 11:41:03 -07:00
swaitsandClaude Fable 5.2 bf04056ae1 Contract: Range helpers, say what misses include
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-28 11:40:04 -07:00
swaitsandClaude Fable 5.2 4bc60b4d1f Add stats crate to the workspace
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-28 11:33:28 -07:00
swaits b56564a52a Merge build-time statistics crate 2026-11-28 11:33:28 -07:00
swaitsandClaude Sonnet 5.5 394c7d65f9 Stats crate: build-time histograms and bootstrapped time-saved interval
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 11:32:34 -07:00
swaits b80749ebb5 Dashboard page for sccache-dash (crates/ui)
An eframe/egui page compiled to WebAssembly with trunk. It draws the one
View the server sends: controls on top, three big figures, six cards, and
the collapsible sections Problems, Where compiles went, Over time, Speed,
Extras and Raw counters. The range, refresh interval and theme are
remembered between visits with eframe storage.

mise.toml names trunk 0.22.2 as the build tool.
2026-11-28 11:30:54 -07:00
swaitsandClaude Fable 5.2 8fb4d64494 Contract: build-time histogram per language, 90% interval on time saved
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-28 11:21:56 -07:00
swaitsandClaude Fable 5.2 a8e7bd66cf Data contract between server and page, live stats fixture
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-28 10:40:26 -07:00