Skip to content

Save ZJIT stats_string to JSON output for stats collection#475

Merged
k0kubun merged 1 commit intoruby:mainfrom
k0kubun:zjit-stats-string
Feb 12, 2026
Merged

Save ZJIT stats_string to JSON output for stats collection#475
k0kubun merged 1 commit intoruby:mainfrom
k0kubun:zjit-stats-string

Conversation

@k0kubun
Copy link
Member

@k0kubun k0kubun commented Feb 12, 2026

This PR stores RubyVM::ZJIT.stats_string into the JSON output file if --zjit-stats is enabled. I want to add a feature to rubybench that runs --zjit-stats and shows the stats string on the website.

When RubyVM::ZJIT.stats_enabled? is true and stats_string is available,
include it in the JSON output as zjit_stats_string so rubybench can
read it from the result file.
@k0kubun k0kubun requested a review from a team February 12, 2026 05:30
Copy link
Contributor

@tekknolagi tekknolagi left a comment

Choose a reason for hiding this comment

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

nice. will we be able to track stats deltas across days?

@k0kubun
Copy link
Member Author

k0kubun commented Feb 12, 2026

I'm not planning on doing that; that should probably be achieved by a separate view that renders stats in a graph, not by stats strings.

@k0kubun
Copy link
Member Author

k0kubun commented Feb 12, 2026

I just wanted to stop updating the stats string snapshot in our ruby-bench perf burndown issues manually. That's all.

@k0kubun k0kubun merged commit f05aa62 into ruby:main Feb 12, 2026
11 checks passed
@k0kubun k0kubun deleted the zjit-stats-string branch February 12, 2026 18:40
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.

2 participants