summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2021-01-27 16:13:27 -0500
committerAlan Wu <XrXr@users.noreply.github.com>2021-10-20 18:19:28 -0400
commit3c7251b41b8850aab7c64c4885669e9c099d2465 (patch)
tree2a71261442d0d44ae03a8877e721257d6b38c198 /tool
parent09479c33f54423910674780d1fcb7834e98ef561 (diff)
Tally instructions when taking side exists for --ujit-stats
shopify/ruby#29 Co-authored-by: Maxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com>
Diffstat (limited to 'tool')
-rwxr-xr-xtool/runruby.rb5
1 files changed, 5 insertions, 0 deletions
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?