From 3e76fad51fc482511a78d330bd3c1e4c1c44477d Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Sat, 28 Nov 2026 15:21:19 -0700 Subject: [PATCH] README: say plainly what it is; it does start sccache Co-Authored-By: Claude Fable 5.2 --- README.md | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 7807242..7e3ef7b 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,19 @@ # sccache-dash -A small Linux program in the manner of Syncthing: one binary that watches the local -[sccache](https://github.com/mozilla/sccache) compiler cache, remembers what it did, and serves -a dashboard for it at . It listens on this machine only. +Is [sccache](https://github.com/mozilla/sccache) actually saving you time? sccache-dash answers +that with a dashboard in your browser. -It asks sccache for its counters every 10 seconds, works out hit rates, time saved and what looks -wrong, and sends the page one `View` to draw (the contract is `crates/api`). +It is one small Linux program. It runs in the background, reads sccache's counters every 10 +seconds, keeps 30 days of history, and shows the result at . Only the +machine it runs on can open that page. + +The page shows, for the last hour, 24 hours, 7 days or 30 days: + +- how many compiles came from the cache, overall and per language +- roughly how much time that saved, with a 90% range +- what looks wrong: cache errors, timeouts, a language that rarely hits, a cache close to full +- where the other compiles went, and why some could not be cached +- how long a cache hit takes compared with a build, and how build times are spread ## What it looks like @@ -66,9 +74,11 @@ reading ever is a baseline and counts for nothing. ## Notes on sccache -While sccache's server is running, being asked for its stats every 10 seconds keeps it from its -10-minute idle shutdown. When it is not running, `sccache --show-stats` does not start it (it -prints empty counters) and neither does this program; the next compile starts it, as usual. +When no sccache server is running, sccache-dash starts one (`sccache --start-server`); if that +fails it shows "not running" with the error and tries again a minute later. + +While sccache-dash runs, sccache's server stays up: being asked for its stats every 10 seconds +keeps it from shutting itself down after 10 idle minutes. ## Licence