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§
source§impl 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.