summaryrefslogtreecommitdiff
path: root/test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test.rb')
-rw-r--r--test.rb8
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)