-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix dependency tracking for debugger visualizers #111641
Fix dependency tracking for debugger visualizers #111641
Conversation
This comment has been minimized.
This comment has been minimized.
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
⌛ Trying commit 554f8e4a67a414bcabaa33283bdcc6ee4dc2f923 with merge d75ea5f73435c497a3cb2de433e97109163f94a1... |
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (d75ea5f73435c497a3cb2de433e97109163f94a1): comparison URL. Overall result: ❌ regressions - no action neededBenchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf. @bors rollup=never Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 641.487s -> 643.487s (0.31%) |
554f8e4
to
a7d4880
Compare
Performance looks fine, I'd say. The only regressions come from AST-heavy incr-unchanged tests where it makes a difference that we are now doing the change-detection work that the compiler invalidly skipped before. |
This comment has been minimized.
This comment has been minimized.
96a1854
to
cfca5b0
Compare
@rustbot ready |
/// Traverses and collects the debugger visualizers for a specific crate. | ||
fn debugger_visualizers(tcx: TyCtxt<'_>, _: LocalCrate) -> Vec<DebuggerVisualizerFile> { | ||
let resolver_and_krate = tcx.resolver_for_lowering(()).borrow(); | ||
let krate = &*resolver_and_krate.1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why can't this be done on HIR, like it used to?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So that emitting only dep-info does not depend on HIR lowering. See this test for example.
…in deterministic order.
@bors r+ |
⌛ Testing commit 927e1ef with merge 2e9660f1bb00ee53638f73fe48cc8f8842daaf60... |
This comment has been minimized.
This comment has been minimized.
💔 Test failed - checks-actions |
Let's see if that fixed the test for macOS. |
☀️ Test successful - checks-actions |
Finished benchmarking commit (17a6810): comparison URL. Overall result: ❌ regressions - no action needed@rustbot label: -perf-regression Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 640.861s -> 640.817s (-0.01%) |
This PR fixes dependency tracking for debugger visualizer files by changing the
debugger_visualizers
query to aneval_always
query that scans the AST while it is still available. This way the set of visualizer files is already available when dep-info is emitted. Since the query is turned into aneval_always
query, dependency tracking will now reliably detect changes to the visualizer script files themselves.TODO:
Fixes #111226
Fixes #111227
Fixes #111295
r? @wesleywiser
cc @gibbyfree