From 630a792d49ae8f81b6de5c291c54ca04febb119a Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 4 Nov 2017 16:41:27 +0000 Subject: Add alias for reporting on binary sizes --- bashrc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'bashrc') 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" -- cgit v1.2.3