diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-11-04 16:41:27 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-11-04 16:41:27 +0000 |
commit | 630a792d49ae8f81b6de5c291c54ca04febb119a (patch) | |
tree | 1508c37aa415c66e2152f2b2527f0beefe988b1c | |
parent | Step indentation level in coverage report (diff) | |
download | util-630a792d49ae8f81b6de5c291c54ca04febb119a.tar.bz2 util-630a792d49ae8f81b6de5c291c54ca04febb119a.tar.xz util-630a792d49ae8f81b6de5c291c54ca04febb119a.zip |
Add alias for reporting on binary sizes
-rw-r--r-- | bashrc | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -51,6 +51,14 @@ cov() { [ "${2}" != "0" ] && xdg-open file://$src/bin/cov/html/index.html } +sizes() { + find -path */release/* -type f -perm -111 -delete + build variant=release + find -path */release/* -type f -perm -111 | sort | xargs -r strip --strip-unneeded + find -path */release/* -type f -perm -111 -printf "%p\t%s\n" | sort -k1 | \ + column -N path,size -R path,size -t -s $'\t' | tee ~/new +} + PATH="/usr/lib/ccache/bin:$PATH" CORES=$(grep core\ id /proc/cpuinfo | sort -u | wc -l) export FEATURES="ccache" |