diff options
Diffstat (limited to 'bashrc')
-rw-r--r-- | bashrc | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -80,8 +80,16 @@ sizes() { column -N module,binary,size -R module,binary,size -t -s $'\t' } -PATH="/usr/lib/ccache/bin:$PATH" -CORES=$(grep core\ id /proc/cpuinfo | sort -u | wc -l) +bloatysizes() { + MODE="variant=release strip=off debug-symbols=on testing.execute=off" + TARGETS=$(build $MODE $@ -and1 | grep '^\(gcc\|clang-linux\)\.link' | cut -d ' ' -f 2) + TARGET="$(echo ${TARGETS} | awk '{ print $NF }')" + if [[ -z $TARGETS ]] ; then return ; fi + build $MODE -d1 $@ + ls -lh $TARGET + bloaty -s vm --domain=vm -d symbols -C full -n 0 $TARGET | tee /var/tmp/bloaty +} + CPUS=$(grep core\ id /proc/cpuinfo -c) if [ -n "$DISTCC_HOSTS" ] ; then TASKS=$(echo $DISTCC_HOSTS | tr ' ' '\n' | cut -d / -f2 | paste -s -d+ | bc) |