WIP: Report tier-promoted (PGO) opt-level per CodeInstance#42
Draft
IanButterworth wants to merge 1 commit into
Draft
WIP: Report tier-promoted (PGO) opt-level per CodeInstance#42IanButterworth wants to merge 1 commit into
IanButterworth wants to merge 1 commit into
Conversation
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>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.