Skip to content

Make it possible to load self-profile data from local filesystem#2375

Merged
Kobzol merged 12 commits intorust-lang:masterfrom
Kobzol:self-profile-local
Jan 29, 2026
Merged

Make it possible to load self-profile data from local filesystem#2375
Kobzol merged 12 commits intorust-lang:masterfrom
Kobzol:self-profile-local

Conversation

@Kobzol
Copy link
Member

@Kobzol Kobzol commented Jan 28, 2026

This PR refactors the self-profile resolve mechanism in the website to use the SelfProfileStorage trait introduced in #2366. That makes it possible to run bench_local benchmarks with --self-profile, and then seeing all the self-profile information in the local website. That includes the compilation sections, the detailed results page, query table diffs, flamegraphs, Crox/Firefox/Perfetto visualizations and also raw self-profile data download. Everything should now also Just Work™ locally.

This was the gnarliest of the self-profile refactorings that I had to do, and it should unblock further work to include codegen backend and target in the self-profile URL, and maybe also to slightly optimize the self-profile upload during benchmark collection.

I removed one legacy endpoint for which I found no usage.

It can be tested e.g. with:

cargo run --bin collector bench_local --include helloworld --id self-profile-test-artifact1 --self-profile `rustup +nightly which rustc` --db postgres://postgres:testpass@localhost:5432/postgres

and then opening the website and checking e.g. the Detailed results page.

Best reviewed commit-by-commit.

@Kobzol Kobzol force-pushed the self-profile-local branch from c9554c7 to a684959 Compare January 28, 2026 15:03
Copy link
Contributor

@Jamesbarford Jamesbarford left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great 😄 - LGTM

@Kobzol Kobzol added this pull request to the merge queue Jan 29, 2026
Merged via the queue into rust-lang:master with commit 7675335 Jan 29, 2026
14 checks passed
@Kobzol Kobzol deleted the self-profile-local branch January 29, 2026 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants