diff --git a/do.sh b/do.sh index 3aef3c0b..fae9c434 100755 --- a/do.sh +++ b/do.sh @@ -287,6 +287,15 @@ _has_license() { echo $(grep -P 'Copyright \d\d\d\d The Vouch Proxy Authors' ${FILE}) } +profile() { + echo "for profiling to work you may need uncomment the code in main.go" + build + ./vouch-proxy -profile + go tool pprof -http=0.0.0.0:19091 http://0.0.0.0:9090/debug/pprof/profile?seconds=10 + +} + + usage() { cat <