Skip to content

Instantly share code, notes, and snippets.

@llimllib
Created January 19, 2019 00:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save llimllib/d14bbab0fa4c95dd38df756afb08f671 to your computer and use it in GitHub Desktop.
Save llimllib/d14bbab0fa4c95dd38df756afb08f671 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
set -x
GODEBUG=gctrace=1 etl -data_dir=etl/data -skip_aws &
ETL_PID=$!
function finish {
kill -9 $ETL_PID
}
trap finish EXIT
# pip install psrecord
psrecord $ETL_PID --plot memory.png --log memory.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment