diff --git a/lib/singed/cli.rb b/lib/singed/cli.rb index ddd837c..1db063c 100644 --- a/lib/singed/cli.rb +++ b/lib/singed/cli.rb @@ -27,6 +27,10 @@ def parse_argv! @output_directory = directory end + opts.on("-r", "--rate RATE", Integer, "Sample rate for rbspy") do |rate| + @rate = rate + end + opts.order(@argv) do |arg| opts.terminate if arg == "--" break @@ -71,6 +75,7 @@ def run options = { format: "speedscope", file: filename.to_s, + rate: @rate, silent: nil }