diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2015-10-05 17:22:09 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2015-10-05 17:22:09 -0700 |
commit | 130a94291555c03ca4775596ac940bac433b9174 (patch) | |
tree | f5051bfa89a8c6899ce9fdfa9ba3e56168277476 /lib/chef/application/apply.rb | |
parent | 69cf21c8b35d7fb94775db377e810908e5fad54a (diff) | |
download | chef-130a94291555c03ca4775596ac940bac433b9174.tar.gz |
add optional ruby-profiling with --profile-ruby
dumps a large call graph into /var/chef/cache/graph_profile.out
Diffstat (limited to 'lib/chef/application/apply.rb')
-rw-r--r-- | lib/chef/application/apply.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/chef/application/apply.rb b/lib/chef/application/apply.rb index 243b441119..69129a4691 100644 --- a/lib/chef/application/apply.rb +++ b/lib/chef/application/apply.rb @@ -97,6 +97,12 @@ class Chef::Application::Apply < Chef::Application :description => 'Enable whyrun mode', :boolean => true + option :profile_ruby, + :long => "--[no-]profile-ruby", + :description => "Output ruby execution profile graph", + :boolean => true, + :default => false + option :color, :long => '--[no-]color', :boolean => true, |