summaryrefslogtreecommitdiff
path: root/rjit.c
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2023-03-17 22:31:41 -0700
committerTakashi Kokubun <takashikkbn@gmail.com>2023-03-17 22:31:41 -0700
commit644c9985256e8bf52d8ec362dcebe4a437e7fd51 (patch)
treee70f0f8b29fc28df34403026bceadb3a85bcf5f6 /rjit.c
parentb9f411b3a855f13b3ab9f5b0fa9845a078e1bc93 (diff)
RJIT: Support --rjit-stats on release build as well
Diffstat (limited to 'rjit.c')
-rw-r--r--rjit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rjit.c b/rjit.c
index 5d60627a1a..3137ba0095 100644
--- a/rjit.c
+++ b/rjit.c
@@ -145,8 +145,8 @@ rb_rjit_setup_options(const char *s, struct rjit_options *rjit_opt)
#define M(shortopt, longopt, desc) RUBY_OPT_MESSAGE(shortopt, longopt, desc)
const struct ruby_opt_message rb_rjit_option_messages[] = {
-#if RJIT_STATS
M("--rjit-stats", "", "Enable collecting RJIT statistics"),
+#if RJIT_STATS
M("--rjit-trace-exits", "", "Trace side exit locations"),
#endif
M("--rjit-exec-mem-size=num", "", "Size of executable memory block in MiB (default: " STRINGIZE(DEFAULT_EXEC_MEM_SIZE) ")"),
@@ -158,9 +158,9 @@ const struct ruby_opt_message rb_rjit_option_messages[] = {
};
#undef M
-#if RJIT_STATS
struct rb_rjit_runtime_counters rb_rjit_counters = { 0 };
+#if RJIT_STATS
void
rb_rjit_collect_vm_usage_insn(int insn)
{