summaryrefslogtreecommitdiffstats
path: root/run-make-check.sh
diff options
context:
space:
mode:
authorErwan Velu <erwan@redhat.com>2018-08-16 17:08:16 +0200
committerErwan Velu <erwan@redhat.com>2018-08-17 10:16:58 +0200
commitd1a807a2775db7b49e15f11152bc7157a3ced4a0 (patch)
treef2146354c1b944e9978ebf2b43e9ccaf9fc5ea43 /run-make-check.sh
parentMerge PR #23468 into master (diff)
downloadceph-d1a807a2775db7b49e15f11152bc7157a3ced4a0.tar.xz
ceph-d1a807a2775db7b49e15f11152bc7157a3ced4a0.zip
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 <erwan@redhat.com>
Diffstat (limited to 'run-make-check.sh')
-rwxr-xr-xrun-make-check.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/run-make-check.sh b/run-make-check.sh
index bca8d78c335..c69d00c3f6c 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