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:
1 parent
0cb8206d43
commit
3e76fad51f
1 file changed
+18
-8
@@ -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 <http://127.0.0.1:8226>. 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 <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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user