From: Erwan Velu Date: Thu, 16 Aug 2018 15:08:16 +0000 (+0200) Subject: run-make-check: Showing configuration before the build X-Git-Tag: v14.0.1~556^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F23609%2Fhead;p=ceph.git run-make-check: Showing configuration before the build The actual code is resetting the statistics before doing the actual compilation and prints them after the build. That is nice to understand how much the cache was used but doesn't help understanding how much it _could_ have been used. This patch is adding a reporting (-s) when cleaning the statistics so we can estimate : - the actual number of files in cache - the actual size of the cache With this two missing information, its now possible estimate if there is some miss-usage of the cache. Signed-off-by: Erwan Velu --- diff --git a/run-make-check.sh b/run-make-check.sh index bca8d78c3354..c69d00c3f6cf 100755 --- a/run-make-check.sh +++ b/run-make-check.sh @@ -123,7 +123,7 @@ EOM echo "Current ccache max_size setting:" ccache -p | grep max_size fi - $DRY_RUN ccache -z # Reset the ccache statistics + $DRY_RUN ccache -sz # Reset the ccache statistics and show the current configuration $DRY_RUN ./do_cmake.sh $CMAKE_BUILD_OPTS $@ || return 1 $DRY_RUN cd build