pub struct InstrumentationPass;Expand description
A lightweight instrumentation pass that generates profiling stubs and summary reports from collected data.
Implementations§
Source§impl InstrumentationPass
impl InstrumentationPass
Sourcepub fn instrument_function(&self, name: &str) -> String
pub fn instrument_function(&self, name: &str) -> String
Return a source-level instrumentation stub for name.
The stub is a comment-annotated placeholder that a real backend would lower to a counter increment in the emitted code.
Sourcepub fn generate_profile_report(&self, data: &ProfileData) -> String
pub fn generate_profile_report(&self, data: &ProfileData) -> String
Generate a human-readable profile report from data.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InstrumentationPass
impl RefUnwindSafe for InstrumentationPass
impl Send for InstrumentationPass
impl Sync for InstrumentationPass
impl Unpin for InstrumentationPass
impl UnsafeUnpin for InstrumentationPass
impl UnwindSafe for InstrumentationPass
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more