-
Notifications
You must be signed in to change notification settings - Fork 375
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support stats "yjit_alloc_size" (#3661)
What does this PR do? Add stats "yjit_alloc_size" which stats is available by default since Ruby 3.3 yjit_alloc_size and several more metadata-related stats are now available by default. ref: ruby-lang.org/en/news/2023/12/25/ruby-3-3-0-released Motivation: The new metrics helps us tune --yjit-exec-mem-size option. Monitoring both code_region_size and yjit_alloc_size makes it easier to understand the impact of YJIT's memory usage. (translated by DeepL) ref: gihyo.jp/article/2024/01/ruby3.3-jit * Support stats "yjit_alloc_size" * Disable cop: Metrics/MethodLength lib/datadog/core/runtime/metrics.rb:143:9: C: Metrics/MethodLength: Method has too many lines. [40/36] def flush_yjit_stats ... ^^^^^^^^^^^^^^^^^^^^ * Add Ruby 3.3 to matrix target in test-yjit * Run test for metric :yjit_alloc_size if Ruby.version >= 3.3 ref: https://github.com/ruby/ruby/blob/029d92b8988d26955d0622f0cbb8ef3213200749/doc/NEWS/NEWS-3.3.0.md?plain=1#L435 --------- Co-authored-by: Oleg Pudeyev <[email protected]>
- Loading branch information
1 parent
bd08222
commit b047a30
Showing
5 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters