summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2026-03-18 11:49:23 -0700
committerTakashi Kokubun <takashikkbn@gmail.com>2026-03-19 10:19:33 -0700
commit8003f48be7477c3482d0a007009c2af5aa388c0e (patch)
tree1d667f3c31f6f23ac2112cf5a7cd747c6f0efa3d /misc
parentea5aae06fd44d4ac93b9af1ca4b8d7aaf96d9247 (diff)
yjit_perf.py: Generalize the script for ZJIT
Diffstat (limited to 'misc')
-rwxr-xr-xmisc/jit_perf.py (renamed from misc/yjit_perf.py)7
1 files changed, 4 insertions, 3 deletions
diff --git a/misc/yjit_perf.py b/misc/jit_perf.py
index 117e1da4f6..37a63f5329 100755
--- a/misc/yjit_perf.py
+++ b/misc/jit_perf.py
@@ -22,10 +22,11 @@ def categorize_symbol(dso, symbol):
return '[sha256]'
elif symbol.startswith('[JIT] gen_send'):
return '[JIT send]'
- elif symbol.startswith('[JIT]'):
+ # TODO: Stop using zjit:: as the prefix for JIT code. Rust modules and JIT code should use different namespaces.
+ elif symbol.startswith('[JIT]') or (symbol.startswith('zjit::') and '@') or symbol == 'zjit::ZJIT entry trampoline':
return '[JIT code]'
- elif '::' in symbol or symbol.startswith('yjit::') or symbol.startswith('_ZN4yjit'):
- return '[YJIT compile]'
+ elif '::' in symbol or symbol.startswith('_ZN4yjit') or symbol.startswith('_ZN4zjit'):
+ return '[JIT compile]'
elif symbol.startswith('rb_vm_') or symbol.startswith('vm_') or symbol in {
"rb_call0", "callable_method_entry_or_negative", "invoke_block_from_c_bh",
"rb_funcallv_scope", "setup_parameters_complex", "rb_yield"}: