diff --git a/yjit.rb b/yjit.rb index 0ac81f1881..dc4699c7e6 100644 --- a/yjit.rb +++ b/yjit.rb @@ -285,6 +285,7 @@ module RubyVM::YJIT out.puts "bindings_allocations: " + format_number(13, stats[:binding_allocations]) out.puts "bindings_set: " + format_number(13, stats[:binding_set]) out.puts "compilation_failure: " + format_number(13, compilation_failure) if compilation_failure != 0 + out.puts "compiled_iseq_entry: " + format_number(13, stats[:compiled_iseq_entry]) out.puts "compiled_iseq_count: " + format_number(13, stats[:compiled_iseq_count]) out.puts "compiled_blockid_count:" + format_number(13, stats[:compiled_blockid_count]) out.puts "compiled_block_count: " + format_number(13, stats[:compiled_block_count]) diff --git a/yjit/src/core.rs b/yjit/src/core.rs index 4dd0a387d5..c8e17d325d 100644 --- a/yjit/src/core.rs +++ b/yjit/src/core.rs @@ -2168,6 +2168,9 @@ pub fn gen_entry_point(iseq: IseqPtr, ec: EcPtr) -> Option { } } + // Count the number of entry points we compile + incr_counter!(compiled_iseq_entry); + // Compilation successful and block not empty return code_ptr; } diff --git a/yjit/src/stats.rs b/yjit/src/stats.rs index 7c5b334421..299db2c696 100644 --- a/yjit/src/stats.rs +++ b/yjit/src/stats.rs @@ -369,6 +369,7 @@ make_counters! { binding_set, vm_insns_count, + compiled_iseq_entry, compiled_iseq_count, compiled_blockid_count, compiled_block_count,