Created
January 21, 2015 22:43
-
-
Save glennpratt/a3a24cab07d7d9b97f13 to your computer and use it in GitHub Desktop.
Puppet with stackprof
This file contains hidden or 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
| stackprof --stackcollapse stackprof.dump | ~/Code/FlameGraph/flamegraph.pl > blah.html; open blah.html |
This file contains hidden or 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
| #!/usr/bin/env ruby | |
| require 'stackprof' | |
| e = nil | |
| StackProf.run(mode: :wall, raw: true, interval: 1000, out: '/tmp/stackprof.dump') do | |
| begin | |
| load '/usr/local/bin/puppet' | |
| rescue Exception => e | |
| end | |
| end | |
| raise e |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment