Revision 41b11a35
Added by rwstauner (Randy Stauner) 3 days ago
ZJIT: Add --zjit-stats=quiet option to collect stats without printing (#14467)
Similar to YJIT's --yjit-stats=quiet, this option allows ZJIT to collect
statistics and make them available via the Ruby API without printing them
at exit. This is useful for programmatic access to stats without the
output noise.
- Added print_stats field to Options struct
- Modified option parsing to support --zjit-stats=quiet
- Added rb_zjit_print_stats_p primitive to check if stats should be printed
- Updated zjit.rb to only register at_exit handler when print_stats is true
- Update the help text shown by
ruby --help
to indicate that
--zjit-stats now accepts an optional =quiet parameter. - Added test for --zjit-stats=quiet option