Merged
Conversation
Use the 'original reference map' to translate created variables back to their references, so that the reference names can be pretty printed. This should yield their actual codebase names.
Contributor
|
Looks like some type errors at build time |
In the lambda floating path, the variables wasn't been added to the unfresh variable set, so the same variable could be chosen multiple times erroneously.
Doesn't do anything interesting. This is just trying to make sure it isn't completely broken.
Contributor
Author
|
Fabio noticed a bug that I fixed in d73c.... Ran base test afterwards and all passed. |
Previously you would only get floated names for newly loaded definitions from the codebase, so profiling anything that was already loaded would just show hashes. Now we store names for everything we've loaded, like we do with references and whatnot. This is also less awkward than the extra result for the floated names from various functions.
Contributor
Author
|
I don't really understand the CI failures. It looks like it's complaining about the output for profiling commands in the help transcript. But I didn't change that. Is this a 'needs to merge with trunk' problem? Edit: nevermind, I reran the wrong transcripts. Still not sure how it was this PR that failed them. |
Contributor
|
Sorry about the CI failures, it's something that changed nondeterministically in trunk. |
aryairani
approved these changes
Sep 9, 2025
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.
This PR modifies some of the compilation process to keep track of names for floated terms. These names are then fed into the profile rendering so that you see more comprehensible call sites, rather than just opaque hash prefixes.
As an example, the code:
produces profiling output like this:
The
$separator was chosen to avoid conflicting with multi-part namespaces, which could show up in the profile output.The remaining hash is the 'watch expression' from the unison file, which has no name.