diff options
| author | Takashi Kokubun <takashikkbn@gmail.com> | 2023-10-14 21:00:50 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-14 21:00:50 -0700 |
| commit | 48c6cea330259a66ccf9757b06418b0653ec1dfb (patch) | |
| tree | f5ee93d22ac7f7168fb2704c28a284a2582cf429 | |
| parent | 55c5ebe0a02eee319eb6a965a08bb53c5dcc7feb (diff) | |
YJIT: Count cold_iseq_entry by default (#8654)
| -rw-r--r-- | yjit/src/stats.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/yjit/src/stats.rs b/yjit/src/stats.rs index f20fd81242..859f57c966 100644 --- a/yjit/src/stats.rs +++ b/yjit/src/stats.rs @@ -573,11 +573,6 @@ pub extern "C" fn rb_yjit_get_exit_locations(_ec: EcPtr, _ruby_self: VALUE) -> V #[no_mangle] pub extern "C" fn rb_yjit_incr_counter(counter_name: *const std::os::raw::c_char) { use std::ffi::CStr; - - if !get_option!(gen_stats) { - return; - } - let counter_name = unsafe { CStr::from_ptr(counter_name).to_str().unwrap() }; let counter_ptr = get_counter_ptr(counter_name); unsafe { *counter_ptr += 1 }; |
