RFC: Add compiler support for instrumenting functions by pmur · Pull Request #3917 · rust-lang/rfcs

@pmur

@pmur mentioned this pull request

Feb 10, 2026

5 tasks

programmerjake

@ehuss ehuss added T-lang

Relevant to the language team, which will review and decide on the RFC.

T-compiler

Relevant to the compiler team, which will review and decide on the RFC.

labels

Feb 10, 2026

Darksonn

@ojeda ojeda mentioned this pull request

Feb 11, 2026

48 tasks

* Add `#[instrument_fn = "off"]` form.

* s/linux/Linux/ when used as a proper noun.

* Add prior art paragraph about patachable-function-entries rfc.

* Clarify `ignore-loops` xray option.

@pmur

With the current instrumentation frameworks, I don't think there
is benefit to fine grain controls. I have simplified the attribute
to "on" and "off".

XRay has some creative options, but fine grain control of entry
and exit instrumentation insertion probably isn't useful.