rust-lang / rust-lang/rustc-perf

Use hardware performance counter data for the detailed/self-profile data view

Open
#1,345 11 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

A-collector
Dominant language
Rust
Stars
733
Forks
189
Avg merge
10h 52m
Merged PRs (30d)
43

Description

Now that rustc supports using HPC data in -Zself-profile (rust-lang/rust#78781), it would be great to use this support on perf.rlo as well. Many of our smaller benchmarks don't run long enough for the std::time::Instant based profiling to work reliably which makes it hard to interpret the data when it doesn't really match the results reported on the summary page for a particular benchmark. By using the HPC data, hopefully this will improve the accuracy of detailed data view.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the detailed/self-profile data view and how it currently uses std::time::Instant-based profiling. Compare that path with rustc's -Zself-profile hardware performance counter support described in rust-lang/rust#78781. Done means the detailed view uses HPC data and provides more reliable results for short benchmarks, consistent with the summary page.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
performance
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.