From 1d03c7da041cb426dfd269193818722279cebaa4 Mon Sep 17 00:00:00 2001 From: aycabta Date: Tue, 13 Jul 2021 21:21:35 +0900 Subject: [PATCH] [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 58eaec2ded..adea540e92 100644 --- a/lib/irb/cmd/measure.rb +++ b/lib/irb/cmd/measure.rb @@ -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