summaryrefslogtreecommitdiff
path: root/yjit.rb
diff options
context:
space:
mode:
authorywenc <ywenc@github.com>2023-08-18 18:27:59 -0400
committerGitHub <noreply@github.com>2023-08-18 18:27:59 -0400
commit3dff315ed3e01f54980410008b73c6a838528e08 (patch)
tree9e6555c1f9239bd95f0acaebb89c23f4049a28d8 /yjit.rb
parent07833049dffad4dd29435dd290b4e31d1c1e4f9a (diff)
YJIT: Quiet mode when running with `--yjit-stats` (#8251)
Quiet mode for running with --yjit-stats
Notes
Notes: Merged-By: maximecb <maximecb@ruby-lang.org>
Diffstat (limited to 'yjit.rb')
-rw-r--r--yjit.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/yjit.rb b/yjit.rb
index 30e353a596..01d3efc6d2 100644
--- a/yjit.rb
+++ b/yjit.rb
@@ -226,7 +226,9 @@ module RubyVM::YJIT
# Avoid calling a method here to not interfere with compilation tests
if Primitive.rb_yjit_stats_enabled_p
at_exit do
- _print_stats
+ if Primitive.rb_yjit_print_stats_p
+ _print_stats
+ end
_dump_locations
end
end