Struct puffin::Record [−][src]
pub struct Record<'s> {
pub start_ns: NanoSecond,
pub duration_ns: NanoSecond,
pub id: &'s str,
pub location: &'s str,
pub data: &'s str,
}
Expand description
Used when parsing a Stream.
Fields
start_ns: NanoSecond
duration_ns: NanoSecond
id: &'s str
e.g. function name. Mandatory. Used to identify records. Does not need to be globally unique, just unique in the parent scope. Example: “load_image”
location: &'s str
e.g. file name. Optional. Used for finding the location of the profiler scope. Example: “my_library/image_loader.rs:52”
data: &'s str
e.g. function argument, like a mesh name. Optional. Example: “image.png”.
Implementations
Trait Implementations
Auto Trait Implementations
impl<'s> RefUnwindSafe for Record<'s>
impl<'s> UnwindSafe for Record<'s>
Blanket Implementations
Mutably borrows from an owned value. Read more