Repository navigation
Conversation
c7f01c2 to
9116c56
Compare
|
r? jdonszelmann |
|
|
|
This PR modifies If appropriate, please update |
|
cc @jieyouxu |
9116c56 to
a62a628
Compare
This comment has been minimized.
This comment has been minimized.
a62a628 to
c1bd61d
Compare
This comment has been minimized.
This comment has been minimized.
c1bd61d to
19cde36
Compare
|
This looks like a pretty big hack, tbh 😅 What I used to do when I was benchmarking a lot is to snapshot the built rustc toolchain instead (the thing you can run If I understand it correctly, if you use a profiler on such a snapshotted toolchain directory, it will then associate source lines with the main rustc checkout, so it will not be synchronized with the snapshotted toolchains. Can't we somehow build the toolchain in a way so that it includes its source files at the time of the build, and let the profiler refer to that? IIRC the built toolchain directories already include some source symlinks. Maybe we could just materialize those links, so that they are frozen in time? |
|
Since you work with |
|
|
I agree that it would be much better, but have no idea how to do that or where to look at to figure it out. I'm going to draft this PR and figure something out next week! |
|
☔ The latest upstream changes (presumably #166507) made this pull request unmergeable. Please resolve the merge conflicts by rebasing. |
we had a "how can we make perf work easier?" discussion recently and we agreed that being able to compare per-line instruction count across multiple revisions was very useful, but that having to deal with multiple checkouts of rust-lang/rust was tedious.
this PR makes things a bit easier by adding a
--snapshot-sources <NAME>argument to bootstrap that copies all the sources needed to build a stage2 compiler tobuild/snapshot-<NAME>and compiles everything from here, with a newbuilddirectory.the second commit of this PR makes the
rustc-perfoutput directory shared between the snapshots and the "main" build directory. i think it makes sense to share this directory in particular because having a shared database makes it easy to compare higher-level metrics (such as total instruction count), however i'm not too attached to it.in a later PR, i will make it such that the snapshot name can be populated with the hash of the current revision. i did not do it in now because i need to investigate Git vs Jujutsu behavior differences first.