🌐 AI搜索 & 代理 主页
Skip to content

Conversation

@aidenfoxivey
Copy link
Contributor

@aidenfoxivey aidenfoxivey commented Dec 4, 2025

Resolves Shopify#801

Adds functionality to provide a path to --zjit-stats in order to write there.

Note that doing so with multiple runs will truncate the old file.

Also, quiet is used for separate functionality, so you cannot pass a file called quiet to write to.

Also change --zjit-stats=quiet to --zjit-stats-quiet.

@matzbot matzbot requested a review from a team December 4, 2025 19:15
@k0kubun
Copy link
Member

k0kubun commented Dec 4, 2025

Also, quiet is used for separate functionality, so you cannot pass a file called quiet to write to.

We probably don't need to support saving stats as quiet, but this makes --zjit-stats=quiet more typo-prone, e.g. --zjit-stats=quite would no longer be rejected.

WDYT about renaming --zjit-stats=quiet to --zjit-stats-quiet?

@aidenfoxivey
Copy link
Contributor Author

Also, quiet is used for separate functionality, so you cannot pass a file called quiet to write to.

We probably don't need to support saving stats as quiet, but this makes --zjit-stats=quiet more typo-prone, e.g. --zjit-stats=quite would no longer be rejected.

WDYT about renaming --zjit-stats=quiet to --zjit-stats-quiet?

Sure, I'd do that.

@launchable-app

This comment has been minimized.

@k0kubun k0kubun merged commit 29c29c2 into ruby:master Dec 9, 2025
90 checks passed
nobu added a commit to nobu/ruby that referenced this pull request Dec 10, 2025
The `--zjit-stats-quiet` and `--zjit-stats=quiet` options differ.
The latter option, `=quiet`, does print stats to the file "quiet", but
does not suppress output like yjit option `--yjit-stats=quiet`.

Fix up ruby#15414, 29c29c2
nobu added a commit to nobu/ruby that referenced this pull request Dec 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ZJIT: Support --zjit-stats=filename

2 participants