]> git.ipfire.org Git - thirdparty/ccache.git/commit
Improve -x/--show-compression
authorJoel Rosdahl <joel@rosdahl.net>
Wed, 17 Jul 2019 08:39:30 +0000 (10:39 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Thu, 18 Jul 2019 19:11:42 +0000 (21:11 +0200)
commit8884d0db827b03954d9b2c7ebd71d6a0a6321283
tree762ecb59a038b60c8d837fa72a252b0897b4ba2d
parenta1dda2204e6a2c596e12ee1bcd09211cd1ad90c3
Improve -x/--show-compression

- Ignore *.tmp.* files.
- Mention on-disk size (adjusted for disk block size) to make it match
  the cache size reported by “ccache --show-stats”.
- Introduced “space savings” and “of original” percentages.
- Calculate compression ratio only for compressed files.
- Include “incompressible files” size, i.e. total size of .raw files and
  files produced by previous ccache versions.
- Removed file counts since I don’t think that they are of much
  interest.
- Handle unparsable manifest files from previous ccache versions
  gracefully.
doc/MANUAL.adoc
src/common_header.c
src/common_header.h
src/compress.c