]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Document -x/--show-compression
authorJoel Rosdahl <joel@rosdahl.net>
Mon, 15 Jul 2019 20:13:18 +0000 (22:13 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Mon, 15 Jul 2019 20:40:47 +0000 (22:40 +0200)
doc/MANUAL.adoc
src/ccache.c

index 375a05bd0901ff4a39f7d3777d380f1007cf625d..9f399c144110efda0aec37874b28b636ff825a59 100644 (file)
@@ -169,6 +169,10 @@ compiler options apply and you should refer to the compiler's documentation.
     (environment variable, configuration file or compile-time default) in
     human-readable format.
 
+*`-x, --show-compression`*::
+
+    Print cache compression statistics.
+
 *`-s, --show-stats`*::
 
     Print a summary of configuration and statistics counters in human-readable
@@ -758,6 +762,9 @@ system, in which case the compression performed by ccache of course is
 redundant. See the documentation for the *compression* and *compression_level*
 settings for more information.
 
+You can use *ccache -x/--show-compression* to print some statistics for cache
+compression ratio, number of compressed and uncompressed files, etc.
+
 
 Cache statistics
 ----------------
index 7bd1432dfbaaf86a126cb0281547e690fe47a82c..9b9eb1b3af19e20c1eeb6fb32d9b61f2fe5fd7ae 100644 (file)
@@ -71,11 +71,11 @@ static const char USAGE_TEXT[] =
        "    -M, --max-size=SIZE       set maximum size of cache to SIZE (use 0 for no\n"
        "                              limit); available suffixes: k, M, G, T (decimal)\n"
        "                              and Ki, Mi, Gi, Ti (binary); default suffix: G\n"
+       "    -x, --show-compression    show compression statistics\n"
        "    -p, --show-config         show current configuration options in\n"
        "                              human-readable format\n"
        "    -s, --show-stats          show summary of configuration and statistics\n"
        "                              counters in human-readable format\n"
-       "    -x, --show-compression    show compression statistics\n"
        "    -z, --zero-stats          zero statistics counters\n"
        "\n"
        "    -h, --help                print this help text\n"
@@ -3844,8 +3844,8 @@ ccache_main_options(int argc, char *argv[])
                {"max-size",            required_argument, 0, 'M'},
                {"print-stats",         no_argument,       0, PRINT_STATS},
                {"set-config",          required_argument, 0, 'o'},
+               {"show-compression",    no_argument,       0, 'x'},
                {"show-config",         no_argument,       0, 'p'},
-               {"show-compression",    no_argument,0, 'x'},
                {"show-stats",          no_argument,       0, 's'},
                {"version",             no_argument,       0, 'V'},
                {"zero-stats",          no_argument,       0, 'z'},