From d1a807a2775db7b49e15f11152bc7157a3ced4a0 Mon Sep 17 00:00:00 2001 From: Erwan Velu Date: Thu, 16 Aug 2018 17:08:16 +0200 Subject: [PATCH] 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 --- run-make-check.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run-make-check.sh b/run-make-check.sh index bca8d78c33543..c69d00c3f6cf6 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 -- 2.39.5