mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
turn exec
comment into doc comment
This commit is contained in:
parent
ed6c958ee4
commit
1c4ae7aa4a
@ -183,11 +183,11 @@ impl SelfProfilerRef {
|
||||
}
|
||||
}
|
||||
|
||||
// This shim makes sure that calls only get executed if the filter mask
|
||||
// lets them pass. It also contains some trickery to make sure that
|
||||
// code is optimized for non-profiling compilation sessions, i.e. anything
|
||||
// past the filter check is never inlined so it doesn't clutter the fast
|
||||
// path.
|
||||
/// This shim makes sure that calls only get executed if the filter mask
|
||||
/// lets them pass. It also contains some trickery to make sure that
|
||||
/// code is optimized for non-profiling compilation sessions, i.e. anything
|
||||
/// past the filter check is never inlined so it doesn't clutter the fast
|
||||
/// path.
|
||||
#[inline(always)]
|
||||
fn exec<F>(&self, event_filter: EventFilter, f: F) -> TimingGuard<'_>
|
||||
where
|
||||
|
Loading…
Reference in New Issue
Block a user