github.com/pyroscope-io/pyroscope@v0.37.3-0.20230725203016-5f6947968bd0/scripts/dependency-graph.sh (about) 1 #!/bin/sh 2 3 godepgraph -nostdlib -s ./cmd/pyroscope/ > tmp/deps.dot 4 5 ( 6 cat tmp/deps.dot | head -n 7 | grep -v 'splines=ortho' 7 cat tmp/deps.dot | \ 8 grep pyroscope | \ 9 sed 's/github.com\/pyroscope-io\/pyroscope\///g' | \ 10 grep -v 'pkg/config' | \ 11 grep -v 'pkg/build' | \ 12 grep -v .com 13 echo "}" 14 ) | dot -Tsvg -o tmp/go-deps-graph.svg