diff options
Diffstat (limited to 'test.rb')
-rw-r--r-- | test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test.rb b/test.rb new file mode 100644 index 0000000000..c03fff8991 --- /dev/null +++ b/test.rb @@ -0,0 +1,8 @@ +require "mixlib/shellout" +require "ruby-prof" +RubyProf.start +c = Mixlib::ShellOut.new(["false", "--system", "is-enabled", "sysstat-collect\\x2d.timer"]) +c.run_command +result = RubyProf.stop +printer = RubyProf::FlatPrinter.new(result) +printer.print(STDOUT) |