зеркало из https://github.com/github/ruby.git
YJIT: add new stats counter for compiled ISEQ entry points (#8032)
* YJIT: add new stats counter for compiled ISEQ entry points * Update yjit.rb Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com> --------- Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com>
This commit is contained in:
Родитель
75f8781c08
Коммит
2acb44e044
1
yjit.rb
1
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])
|
||||
|
|
|
@ -2168,6 +2168,9 @@ pub fn gen_entry_point(iseq: IseqPtr, ec: EcPtr) -> Option<CodePtr> {
|
|||
}
|
||||
}
|
||||
|
||||
// Count the number of entry points we compile
|
||||
incr_counter!(compiled_iseq_entry);
|
||||
|
||||
// Compilation successful and block not empty
|
||||
return code_ptr;
|
||||
}
|
||||
|
|
|
@ -369,6 +369,7 @@ make_counters! {
|
|||
binding_set,
|
||||
|
||||
vm_insns_count,
|
||||
compiled_iseq_entry,
|
||||
compiled_iseq_count,
|
||||
compiled_blockid_count,
|
||||
compiled_block_count,
|
||||
|
|
Загрузка…
Ссылка в новой задаче