diff options
| author | Randy Stauner <randy@r4s6.net> | 2025-09-08 08:53:19 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-08 08:53:19 -0700 |
| commit | 41b11a3512317aa3965d8dc425155c9c2d7cdaf6 (patch) | |
| tree | 2f21c0722489ea71dd7553084ee8767396ab8c5b /test/ruby/test_lambda.rb | |
| parent | 08091adec3f5d454efc31969a5eaf0102acea8a8 (diff) | |
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
Diffstat (limited to 'test/ruby/test_lambda.rb')
0 files changed, 0 insertions, 0 deletions
