Skip to content

Instantly share code, notes, and snippets.

@glennpratt
Created January 21, 2015 22:43
Show Gist options
  • Select an option

  • Save glennpratt/a3a24cab07d7d9b97f13 to your computer and use it in GitHub Desktop.

Select an option

Save glennpratt/a3a24cab07d7d9b97f13 to your computer and use it in GitHub Desktop.
Puppet with stackprof
stackprof --stackcollapse stackprof.dump | ~/Code/FlameGraph/flamegraph.pl > blah.html; open blah.html
#!/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