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
sourceimpl<'s> Record<'s>
impl<'s> Record<'s>
pub fn stop_ns(&self) -> NanoSecond
Trait Implementations
impl<'s> Copy for Record<'s>
impl<'s> StructuralPartialEq for Record<'s>
Auto Trait Implementations
impl<'s> RefUnwindSafe for Record<'s>
impl<'s> Send for Record<'s>
impl<'s> Sync for Record<'s>
impl<'s> Unpin for Record<'s>
impl<'s> UnwindSafe for Record<'s>
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