pub struct FirefoxThread { /* private fields */ }
Expand description
The FirefoxProfile
representation of a thread, with additional internal augmentations to
store data necessary for efficiently parsing the thread’s trace log.
NOTE: This is designed to be usable entirely standalone from a FirefoxProfile
during parsing.
Implementations
sourceimpl FirefoxThread
impl FirefoxThread
sourcepub fn new(
registration: ThreadRegistration,
thread: &FirefoxProfileThreadId
) -> FirefoxThread
pub fn new(
registration: ThreadRegistration,
thread: &FirefoxProfileThreadId
) -> FirefoxThread
Create a new FirefoxThread
, given some information about it and a
FirefoxProfileThreadId
granting permission to do so.
sourcepub fn add_trace(&mut self, trace: FunctionTrace)
pub fn add_trace(&mut self, trace: FunctionTrace)
Convert the given FunctionTrace
into a meaningful format and attach it to the current
thread.
Trait Implementations
sourceimpl Debug for FirefoxThread
impl Debug for FirefoxThread
sourceimpl Serialize for FirefoxThread
impl Serialize for FirefoxThread
Auto Trait Implementations
impl RefUnwindSafe for FirefoxThread
impl Send for FirefoxThread
impl Sync for FirefoxThread
impl Unpin for FirefoxThread
impl UnwindSafe for FirefoxThread
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more