mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/irb] Add an explanation of default sub commands of "measure", which are :time and :stackprof
759be5a344
This commit is contained in:
parent
40d45ab093
commit
1d03c7da04
1 changed files with 3 additions and 0 deletions
|
|
@ -9,6 +9,9 @@ module IRB
|
|||
end
|
||||
|
||||
def execute(type = nil, arg = nil, &block)
|
||||
# Please check IRB.init_config in lib/irb/init.rb that sets
|
||||
# IRB.conf[:MEASURE_PROC] to register default "measure" methods,
|
||||
# "measure :time" (abbreviated as "measure") and "measure :stackprof".
|
||||
case type
|
||||
when :off
|
||||
IRB.conf[:MEASURE] = nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue