-
Notifications
You must be signed in to change notification settings - Fork 162
Open
Description
Hey!
I want to add a few metrics about YJIT in the Process instrumentation to understand the YJIT performance.
These metrics depend on the RUBYOPT=--yjit-stats flag and Ruby::YJIT.runtime_stats API.
When the Ruby process starts with --yjit-stats or RUBYOPT=--yjit-stats, the Ruby::YJIT.runtime_stats produces performance stats. Otherwise, Ruby::YJIT.runtime_stats returns nil. Naturally, I would propose to add:
- A new function
collect_yjit_metricsin theProcess#collect. collect_yjit_metricscollects:ratio_in_yjit: the percentage of total YARV instructions executed by YJIT as opposed to the CRuby interpretercode_region_sizeyjit_alloc_sizecode_gc_countcompiled_iseq_countyjit_insns_countside_exit_counttotal_exit_countavg_len_in_yjit
Reference: Ruby YJIT Docuementation
benoittgt
Metadata
Metadata
Assignees
Labels
No labels