summaryrefslogtreecommitdiff
path: root/bashrc
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2017-11-04 16:41:27 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2017-11-04 16:41:27 +0000
commit630a792d49ae8f81b6de5c291c54ca04febb119a (patch)
tree1508c37aa415c66e2152f2b2527f0beefe988b1c /bashrc
parentStep indentation level in coverage report (diff)
downloadutil-630a792d49ae8f81b6de5c291c54ca04febb119a.tar.bz2
util-630a792d49ae8f81b6de5c291c54ca04febb119a.tar.xz
util-630a792d49ae8f81b6de5c291c54ca04febb119a.zip
Add alias for reporting on binary sizes
Diffstat (limited to 'bashrc')
-rw-r--r--bashrc8
1 files changed, 8 insertions, 0 deletions
diff --git a/bashrc b/bashrc
index 57abcf9..36640e7 100644
--- a/bashrc
+++ b/bashrc
@@ -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"