pub enum Profile {
No,
Early,
Late,
}Expand description
Whether every function calls a profiler on the way in, and where that call goes.
What -pg asks for, with -mfentry and -mno-fentry choosing between the last two. The choice
has already been made against the target by the time this is built, which is why there is no
answer here for a command line that named neither.
Variants§
No
It does not, which is what nearly every command line asks for.
Early
In front of the prologue, which is the hook a tracer can replace while the program runs.
Late
Once the frame is taken, which is the hook that reads the frame pointer.
Trait Implementations§
impl Copy for Profile
impl Eq for Profile
impl StructuralPartialEq for Profile
Auto Trait Implementations§
impl Freeze for Profile
impl RefUnwindSafe for Profile
impl Send for Profile
impl Sync for Profile
impl Unpin for Profile
impl UnsafeUnpin for Profile
impl UnwindSafe for Profile
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