From 3c7251b41b8850aab7c64c4885669e9c099d2465 Mon Sep 17 00:00:00 2001 From: Alan Wu Date: Wed, 27 Jan 2021 16:13:27 -0500 Subject: Tally instructions when taking side exists for --ujit-stats shopify/ruby#29 Co-authored-by: Maxime Chevalier-Boisvert --- tool/runruby.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tool/runruby.rb') diff --git a/tool/runruby.rb b/tool/runruby.rb index 9562efc00d..835e772735 100755 --- a/tool/runruby.rb +++ b/tool/runruby.rb @@ -11,6 +11,8 @@ when ENV['RUNRUBY_USE_GDB'] == 'true' debugger = :gdb when ENV['RUNRUBY_USE_LLDB'] == 'true' debugger = :lldb +when ENV['RUNRUBY_UJIT_STATS'] + use_ujit_stat = true end while arg = ARGV[0] break ARGV.shift if arg == '--' @@ -164,6 +166,9 @@ if debugger end cmd = [runner || ruby] +if use_ujit_stat + cmd << '--ujit-stats' +end cmd.concat(ARGV) cmd.unshift(*precommand) unless precommand.empty? -- cgit v1.2.1