README: say plainly what it is; it does start sccache

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
swaitsandClaude Fable 5.2 committed 2026-11-28 15:21:19 -07:00
1 parent 0cb8206d43
commit 3e76fad51f
1 file changed
+18 -8
+18 -8
View File
@@ -1,11 +1,19 @@
# sccache-dash # sccache-dash
A small Linux program in the manner of Syncthing: one binary that watches the local Is [sccache](https://github.com/mozilla/sccache) actually saving you time? sccache-dash answers
[sccache](https://github.com/mozilla/sccache) compiler cache, remembers what it did, and serves that with a dashboard in your browser.
a dashboard for it at <http://127.0.0.1:8226>. It listens on this machine only.
It asks sccache for its counters every 10 seconds, works out hit rates, time saved and what looks It is one small Linux program. It runs in the background, reads sccache's counters every 10
wrong, and sends the page one `View` to draw (the contract is `crates/api`). seconds, keeps 30 days of history, and shows the result at <http://127.0.0.1:8226>. 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 ## What it looks like
@@ -66,9 +74,11 @@ reading ever is a baseline and counts for nothing.
## Notes on sccache ## Notes on sccache
While sccache's server is running, being asked for its stats every 10 seconds keeps it from its When no sccache server is running, sccache-dash starts one (`sccache --start-server`); if that
10-minute idle shutdown. When it is not running, `sccache --show-stats` does not start it (it fails it shows "not running" with the error and tries again a minute later.
prints empty counters) and neither does this program; the next compile starts it, as usual.
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 ## Licence