diff options
author | Jean Boussier <[email protected]> | 2021-08-24 12:32:07 +0200 |
---|---|---|
committer | Alan Wu <[email protected]> | 2021-10-20 18:19:39 -0400 |
commit | 0dc3bba6f2b2b1b23e1ec9dd2ec29f932c292db0 (patch) | |
tree | c9db52ed439e6cf7fc3f48622718ce418f3b3849 /yjit_core.c | |
parent | 2ba090a1f9258035b40374f9ff9da3ff920701cd (diff) |
Allow to compile with --yjit-stats support but not the full RUBY_DEBUG
RUBY_DEBUG have a very significant performance overhead. Enough that
YJIT with RUBY_DEBUG is noticeably slower than the interpreter without
RUBY_DEBUG.
This makes it hard to collect yjit-stats in production environments.
By allowing to collect JIT statistics without the RUBy_DEBUG overhead,
I hope to make such use cases smoother.
Diffstat (limited to 'yjit_core.c')
-rw-r--r-- | yjit_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yjit_core.c b/yjit_core.c index 519da41230..ee3914acc6 100644 --- a/yjit_core.c +++ b/yjit_core.c @@ -522,7 +522,7 @@ add_block_version(blockid_t blockid, block_t* block) rb_bug("allocation failed"); } -#if RUBY_DEBUG +#if YJIT_STATS // First block compiled for this iseq yjit_runtime_counters.compiled_iseq_count++; #endif |