Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/fluent/rubyprof.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def parse_options(argv = ARGV)
raise OptionParser::InvalidOption.new("`start` or `stop` must be specified as the 1st argument")
end

measure_modes = %w[PROCESS_TIME WALL_TIME CPU_TIME ALLOCATIONS MEMORY GC_RUNS GC_TIME]
measure_modes = %w[PROCESS_TIME WALL_TIME ALLOCATIONS MEMORY]
unless measure_modes.include?(opts[:measure_mode])
raise OptionParser::InvalidOption.new("-m allows one of #{measure_modes.join(', ')}")
end
Expand Down
2 changes: 1 addition & 1 deletion spec/fluent-rubyprof/rubyprof_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
end

it 'correct measure_mode' do
expect { Fluent::Rubyprof.new.parse_options(['start', '-m', 'CPU_TIME']) }.not_to raise_error
expect { Fluent::Rubyprof.new.parse_options(['start', '-m', 'PROCESS_TIME']) }.not_to raise_error
end

it 'incorrect measure_mode' do
Expand Down