ruby-changes:66778
From: aycabta <ko1@a...>
Date: Tue, 13 Jul 2021 21:21:52 +0900 (JST)
Subject: [ruby-changes:66778] 1d03c7da04 (master): [ruby/irb] Add an explanation of default sub commands of "measure", which are :time and :stackprof
https://git.ruby-lang.org/ruby.git/commit/?id=1d03c7da04 From 1d03c7da041cb426dfd269193818722279cebaa4 Mon Sep 17 00:00:00 2001 From: aycabta <aycabta@g...> Date: Tue, 13 Jul 2021 21:21:35 +0900 Subject: [ruby/irb] Add an explanation of default sub commands of "measure", which are :time and :stackprof https://github.com/ruby/irb/commit/759be5a344 --- lib/irb/cmd/measure.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/irb/cmd/measure.rb b/lib/irb/cmd/measure.rb index 58eaec2..adea540 100644 --- a/lib/irb/cmd/measure.rb +++ b/lib/irb/cmd/measure.rb @@ -9,6 +9,9 @@ module IRB https://github.com/ruby/ruby/blob/trunk/lib/irb/cmd/measure.rb#L9 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 -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/