summaryrefslogtreecommitdiff
path: root/yjit.rb
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2021-09-22 16:56:42 -0400
committerAlan Wu <XrXr@users.noreply.github.com>2021-10-20 18:19:41 -0400
commit0a108601eff5a1e69a4dd5dc170e9eaa807d4788 (patch)
tree347c861e60592a9bb91fa6b1e9c47ad25be29633 /yjit.rb
parente48fc07d11551a9a47034a03219e73c99bc4a38d (diff)
Add counters for version invalidation reasons
I noticed that there were two st_table iterators that do exactly the same thing so I merged them into one.
Diffstat (limited to 'yjit.rb')
-rw-r--r--yjit.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/yjit.rb b/yjit.rb
index f7e283dc05..29a8d39d27 100644
--- a/yjit.rb
+++ b/yjit.rb
@@ -160,6 +160,7 @@ module YJIT
print_counters(stats, prefix: 'oaref_', prompt: 'opt_aref exit reasons: ')
print_counters(stats, prefix: 'expandarray_', prompt: 'expandarray exit reasons: ')
print_counters(stats, prefix: 'opt_getinlinecache_', prompt: 'opt_getinlinecache exit reasons: ')
+ print_counters(stats, prefix: 'invalidate_', prompt: 'invalidation reasons: ')
side_exits = total_exit_count(stats)
total_exits = side_exits + stats[:leave_interp_return]