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

Create a new FirefoxProfile representing a given trace.

Register a new thread, allowing us to parse traces for it without needing ownership of the FirefoxProfile object.

Finalize this thread, attaching it to the profile.

Export the recorded profile to the given output directory.

Trait Implementations

Formats the value using the given formatter. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.