]> git.ipfire.org Git - thirdparty/ccache.git/commit
feat: Improve statistics summary
authorJoel Rosdahl <joel@rosdahl.net>
Mon, 16 Aug 2021 06:10:21 +0000 (08:10 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Mon, 16 Aug 2021 18:12:04 +0000 (20:12 +0200)
commit8892814e8a790d615e44262c0005513d6d49f9e1
treef85d25049d3d5d2e9aa3706eb1c3a4601131af55
parent73c26a9baff31cf99e5a73b4015139499d42b3e8
feat: Improve statistics summary

The number of statistics counters has become very large, making the
output “ccache -s” hard to overview.

Improvements:

- The -s/--show-stats option now prints a more condensed overview where
  the counters representing “uncacheable calls” are summed as
  “uncacheable” and “errors” counters. Note: Scripts should use
  --print-stats instead of trying to parse the output of --show-stats.
- Added hit rate for direct/preprocessed hits/misses as well.
- Added a new -v/--verbose option, which makes --show-stats and
  --show-log-stats show more details.
doc/MANUAL.adoc
src/core/Statistics.cpp
src/core/Statistics.hpp
src/core/mainoptions.cpp
test/suites/upgrade.bash