Skip to content

feat(self-profile): sample RSS per query and activity - #166434

Draft
Sl1mb0 wants to merge 1 commit into
rust-lang:mainfrom
Sl1mb0:tm/measure-rss-rustc-queries
Draft

Sl1mb0 wants to merge 1 commit into
rust-lang:mainfrom
Sl1mb0:tm/measure-rss-rustc-queries

Conversation

@Sl1mb0

@Sl1mb0 Sl1mb0 commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Intended to help #81348. This is the rustc half of rust-lang/measureme#262.

I'm opening this as a draft; it is not intended to merge as is, but to get a perf run and see if sampling RSS per query is cheap enough to be useful. This adds a resident-set-size event to -Z self-profile-events, which is off by default. When it is on, each query provider and generic activity records the RSS of the process at the start and at the end of the interval. The perf run shows what this costs when the event is off; I will follow up with numbers from rustc-perf for when it is on. One question I have is: should all exclude the new event, so that rustc-perf self-profile runs do not pay for it?

Disclosure: An LLM aided in the creation of this PR.

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Nov 24, 2026
@jyn514

jyn514 commented Nov 24, 2026

Copy link
Copy Markdown
Member

@bors try @rust-timer queue

@rust-timer

Copy link
Copy Markdown
Collaborator

Insufficient permissions to issue commands to rust-timer.

@rust-bors

rust-bors Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

@jyn514: 🔑 Insufficient privileges: not in try users

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants