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

ruby-changes:68852

From: Maxime <ko1@a...>
Date: Thu, 21 Oct 2021 08:12:47 +0900 (JST)
Subject: [ruby-changes:68852] 27a4443643 (master): Add total exit count to stats

https://git.ruby-lang.org/ruby.git/commit/?id=27a4443643

From 27a44436433a0072f62aaae6e8d6f12a1f0a1bf8 Mon Sep 17 00:00:00 2001
From: Maxime Chevalier-Boisvert <maxime.chevalierboisvert@s...>
Date: Mon, 1 Feb 2021 14:18:43 -0500
Subject: Add total exit count to stats

---
 ujit_iface.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/ujit_iface.c b/ujit_iface.c
index d894c1321d..f364a7564c 100644
--- a/ujit_iface.c
+++ b/ujit_iface.c
@@ -520,6 +520,9 @@ print_insn_count_buffer(const struct insn_count *buffer, int how_many, int left_ https://github.com/ruby/ruby/blob/trunk/ujit_iface.c#L520
         total_exit_count += buffer[i].count;
     }
 
+    fprintf(stderr, "total_exit_count:      %10ld\n", total_exit_count);
+    fprintf(stderr, "most frequent exit op:\n");
+
     for (int i = 0; i < how_many; i++) {
         const char *instruction_name = insn_name(buffer[i].insn);
         size_t padding = left_pad + longest_insn_len - strlen(instruction_name);
@@ -545,7 +548,6 @@ print_ujit_stats(void) https://github.com/ruby/ruby/blob/trunk/ujit_iface.c#L548
     fprintf(stderr, "vm_insns_count:        %10" PRId64 "\n", vm_insns_count);
     fprintf(stderr, "ujit_exec_insns_count: %10" PRId64 "\n", rb_ujit_exec_insns_count);
     fprintf(stderr, "ratio_in_ujit:         %9.1f%%\n", ratio * 100);
-    fprintf(stderr, "most frequent exit op:\n");
     print_insn_count_buffer(sorted_exit_ops, 10, 4);
 }
 #endif // if RUBY_DEBUG
-- 
cgit v1.2.1


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

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