github.com/kyleu/dbaudit@v0.0.2-0.20240321155047-ff2f2c940496/bin/util/view-binary-size.sh (about)

     1  #!/bin/bash
     2  # Content managed by Project Forge, see [projectforge.md] for details.
     3  
     4  ## Visualizes space usage for the release binary
     5  
     6  set -euo pipefail
     7  dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
     8  cd "$dir/../.."
     9  
    10  make build-release
    11  go tool nm -size build/release/dbaudit | c++filt > ./tmp/nm.txt