Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YJIT: Make compiled_* stats available by default #8379

Merged
merged 2 commits into from Sep 6, 2023

Conversation

k0kubun
Copy link
Member

@k0kubun k0kubun commented Sep 6, 2023

This PR introduces DEFAULT_COUNTERS that makes the counters available in RubyVM::YJIT.runtime_stats without --yjit-stats. I want to monitor compiled_* stats among different Ruby revisions, and I don't have enough clusters to accommodate --yjit-stats versions besides them. So I want to make them available without --yjit-stats.

It also leverages this constant to refactor code_gc_count as discussed in #6665 (comment).

@matzbot matzbot requested a review from a team September 6, 2023 00:37
yjit/src/codegen.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@maximecb maximecb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea 👍

Co-authored-by: Maxime Chevalier-Boisvert <maximechevalierb@gmail.com>
@k0kubun k0kubun merged commit a334077 into ruby:master Sep 6, 2023
2 of 3 checks passed
@k0kubun k0kubun deleted the yjit-default-stats branch September 6, 2023 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants