Skip to content

Instantly share code, notes, and snippets.

@sitano
Created April 12, 2021 13:57
Show Gist options
  • Save sitano/13e7ffcbed2aea9d7fde53c3239f6658 to your computer and use it in GitHub Desktop.
Save sitano/13e7ffcbed2aea9d7fde53c3239f6658 to your computer and use it in GitHub Desktop.
extract total build times per file
for name in $(fd '.*.json$' build/dev/); do cat $name | rg -o 'Total ExecuteCompiler.{50}' | rg -o 'ms":[0-9]*' | tr -d 'ms":' | awk "{print \$1 \" \" \"$name\"}"; done | sort -h > /tmp/dev_$(git rev-parse HEAD)_master.build_time
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment