Skip to content

WIP: Report tier-promoted (PGO) opt-level per CodeInstance#42

Draft
IanButterworth wants to merge 1 commit into
ib/verbosefrom
ib/opt_level
Draft

WIP: Report tier-promoted (PGO) opt-level per CodeInstance#42
IanButterworth wants to merge 1 commit into
ib/verbosefrom
ib/opt_level

Conversation

@IanButterworth
Copy link
Copy Markdown
Collaborator

No description provided.

Surface the TIER_OPTIMIZED bit that Julia's tiered runtime sets on
CodeInstances promoted from baseline (-O0) to optimized (-O2) during
precompile-time execution. The bit is preserved through pkgimage
serialization (Julia 1.14+) and serves as PGO signal: which methods were
hot while the precompile workload ran in the child Julia process.

- New `tier_optimized(ci)` predicate reading `ci.flags & 0x20`.
- Summary line in `show` reports counts and percentage of promoted CIs.
- Verbose mode prefixes each specialization with `[O2]` (bold yellow)
  or `[O0]`, with promoted entries sorted first within each module.

The two verbose listings (internal and new external specializations)
now share a `_show_grouped_specializations` helper.

Co-authored-by: GitHub Copilot <noreply@github.com>
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.

1 participant