pub struct RustProfiler;Implementations§
Source§impl RustProfiler
impl RustProfiler
pub fn new() -> Self
Sourcepub fn profile_continuous(
&self,
rust_file_or_bin: &str,
) -> Result<ProfileResult, String>
pub fn profile_continuous( &self, rust_file_or_bin: &str, ) -> Result<ProfileResult, String>
Continuous profiling of Rust applications using platform-specific profilers Runs until the process exits or is interrupted
Sourcepub fn profile_pid(&self, _pid: u32) -> Result<ProfileResult, String>
pub fn profile_pid(&self, _pid: u32) -> Result<ProfileResult, String>
Profile by attaching to PID (using perf on Linux)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RustProfiler
impl RefUnwindSafe for RustProfiler
impl Send for RustProfiler
impl Sync for RustProfiler
impl Unpin for RustProfiler
impl UnwindSafe for RustProfiler
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