Last active
August 29, 2015 13:56
-
-
Save robrwo/8866725 to your computer and use it in GitHub Desktop.
Simple utility to profile Puppet manifests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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