Skip to content

Instantly share code, notes, and snippets.

@robrwo
Last active August 29, 2015 13:56
Show Gist options
  • Save robrwo/8866725 to your computer and use it in GitHub Desktop.
Save robrwo/8866725 to your computer and use it in GitHub Desktop.
Simple utility to profile Puppet manifests
#!/bin/bash
sudo puppet agent -t --evaltrace \
| grep --color=never 'Evaluated in \(.\+\) seconds' \
| sed -e 's/Info: \(.\+\): Evaluated in \(.\+\) seconds/\2 \1/' \
| sort -rn \
| head
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment