pub struct FirefoxProfile { /* private fields */ }
Expand description
The top-level structure representing a profile that can be consumed by the Firefox profiler. This will be exported mostly as-is to JSON at the end of a tracing session.
Based off of https://github.com/firefox-devtools/profiler/blob/main/src/types/profile.js.
Implementations
sourceimpl FirefoxProfile
impl FirefoxProfile
sourcepub fn new(info: TraceInitialization) -> FirefoxProfile
pub fn new(info: TraceInitialization) -> FirefoxProfile
Create a new FirefoxProfile
representing a given trace.
sourcepub fn register_thread(&mut self) -> FirefoxProfileThreadId
pub fn register_thread(&mut self) -> FirefoxProfileThreadId
Register a new thread, allowing us to parse traces for it without needing ownership of the
FirefoxProfile
object.
sourcepub fn finalize_thread(&mut self, thread: FirefoxThread)
pub fn finalize_thread(&mut self, thread: FirefoxThread)
Finalize this thread, attaching it to the profile.
Trait Implementations
sourceimpl Debug for FirefoxProfile
impl Debug for FirefoxProfile
sourceimpl Serialize for FirefoxProfile
impl Serialize for FirefoxProfile
Auto Trait Implementations
impl RefUnwindSafe for FirefoxProfile
impl Send for FirefoxProfile
impl Sync for FirefoxProfile
impl Unpin for FirefoxProfile
impl UnwindSafe for FirefoxProfile
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