Repository navigation
fix(pgo): re-key the profiles to the symbol names dev has had since #1099 - #1128
Merged
Merged
Conversation
#1099 added a dependency to crates/win-install and features/updater. cargo derives a crate's symbol hash from its dependencies' hashes, so those two crates and the crates that depend on them (the app crate among them) got new symbol names, and the committed profiles no longer named their functions. Counts moved onto the new names from an instrumented build of dev (#1113): Windows 15,411 of 15,457 functions kept (3,736 renamed; 37 dropped: their code changed; 9 gone); Apple silicon 15,445 of 15,499 (4,452 renamed; 41 dropped; 13 gone). No code changes.
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.
Re-keys the two committed profiles onto the symbol names
devhas had since #1099. Profile files only; no code.Why
#1099 added a dependency to two crate manifests (
crates/win-install,features/updater). cargo derives a crate's symbol hash from its dependencies' hashes, so those two crates and the crates that depend on them got new symbol names: five crates on Windows, the app crate among them. A profile names each function by its symbol, so since #1099 the profiles have named none of those functions and their code has been built without a profile: 3,736 of the 15,457 functions with counts on Windows (24 %), 4,452 of 15,499 on Apple silicon. The launch path's own code is in the app crate.What changes
apps/desktop/pgo/x86_64-pc-windows-msvc.profdataandaarch64-apple-darwin.profdata: the same counts under the new names, made withscripts/pgo-rekey.mjsfrom an instrumented build ofdev(chore(perf): instrumented names build of dev 70f5e31f1c as it is (NEVER MERGE) #1113, never merged).A count is kept only when its re-keyed name exists in the new build with the same control-flow hash.
devhas changed no manifest, lock or toolchain path between the instrumented build and this head.What it does not do
A re-key moves counts; it gives none to a function whose code changed since the training. Those need a new training run, which follows on its own.
Runs
05be0f8fc2): guardrails and all six builds green (macOS, Windows x64 and arm64, Linux x64 and arm64).devbuilt with the old profile (155,384,832 against 155,457,024 bytes). That is a size, not a timing.devbetween this head and the merge: two docs commits; no manifest, lock, toolchain or profile path.