Skip to content

Commit fb4b97d

Browse files
nateberkopecclaude
andauthored
Add command-line option for sample rate in rbspy integration (#47)
Co-authored-by: Claude <[email protected]>
1 parent 7fbb514 commit fb4b97d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/singed/cli.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ def parse_argv!
2727
@output_directory = directory
2828
end
2929

30+
opts.on("-r", "--rate RATE", Integer, "Sample rate for rbspy") do |rate|
31+
@rate = rate
32+
end
33+
3034
opts.order(@argv) do |arg|
3135
opts.terminate if arg == "--"
3236
break
@@ -71,6 +75,7 @@ def run
7175
options = {
7276
format: "speedscope",
7377
file: filename.to_s,
78+
rate: @rate,
7479
silent: nil
7580
}
7681

0 commit comments

Comments
 (0)