diff options
author | Maxime Chevalier-Boisvert <[email protected]> | 2024-06-11 12:46:11 -0400 |
---|---|---|
committer | <[email protected]> | 2024-06-11 12:46:11 -0400 |
commit | 39019b6a63b935d8bd75e46ff82a31e174b1bf85 () | |
tree | 009324e8362137f0754a1ea03cd80d327baca4ee /yjit.rb | |
parent | 568132af16916b05e5bc8a643365bdc7d4906669 (diff) |
YJIT: add context cache size stat, lazily allocate cache
* YJIT: add context cache size stat * Allocate the context cache in a box so CRuby doesn't pay overhead * Add an extra debug assertion
-rw-r--r-- | yjit.rb | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -390,6 +390,7 @@ module RubyVM::YJIT out.puts "yjit_alloc_size: " + format_number(13, stats[:yjit_alloc_size]) if stats.key?(:yjit_alloc_size) bytes_per_context = stats[:context_data_bytes].fdiv(stats[:num_contexts_encoded]) out.puts "context_data_bytes: " + format_number(13, stats[:context_data_bytes]) out.puts "num_contexts_encoded: " + format_number(13, stats[:num_contexts_encoded]) out.puts "bytes_per_context: " + ("%13.2f" % bytes_per_context) |