[前][次][番号順一覧][スレッド一覧]

ruby-changes:68970

From: Maxime <ko1@a...>
Date: Thu, 21 Oct 2021 08:19:30 +0900 (JST)
Subject: [ruby-changes:68970] 38e67ccd15 (master): Add setivar exit reasons to --yjit-stats

https://git.ruby-lang.org/ruby.git/commit/?id=38e67ccd15

From 38e67ccd157497e228b22cd4cd1f9416b61cf0b4 Mon Sep 17 00:00:00 2001
From: Maxime Chevalier-Boisvert <maxime.chevalierboisvert@s...>
Date: Wed, 21 Apr 2021 17:16:44 -0400
Subject: Add setivar exit reasons to --yjit-stats

---
 yjit.rb | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/yjit.rb b/yjit.rb
index a0ff8d11d2..8203051b81 100644
--- a/yjit.rb
+++ b/yjit.rb
@@ -76,17 +76,16 @@ module YJIT https://github.com/ruby/ruby/blob/trunk/yjit.rb#L76
     # Format and print out counters
     def _print_stats
       counters = runtime_stats
-
       return unless counters
 
       $stderr.puts("***YJIT: Printing runtime counters from yjit.rb***")
-
-      $stderr.puts "Number of bindings allocated: %d\n" % counters[:binding_allocations]
-      $stderr.puts "Number of locals modified through binding: %d\n" % counters[:binding_set]
+      $stderr.puts("Number of bindings allocated: %d\n" % counters[:binding_allocations])
+      $stderr.puts("Number of locals modified through binding: %d\n" % counters[:binding_set])
 
       print_counters(counters, prefix: 'oswb_', prompt: 'opt_send_without_block exit reasons: ')
       print_counters(counters, prefix: 'leave_', prompt: 'leave exit reasons: ')
       print_counters(counters, prefix: 'getivar_', prompt: 'getinstancevariable exit reasons:')
+      print_counters(counters, prefix: 'setivar_', prompt: 'setinstancevariable exit reasons:')
       print_counters(counters, prefix: 'oaref_', prompt: 'opt_aref exit reasons: ')
     end
 
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]