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§
source§impl<'s> PartialEq<Record<'s>> for Record<'s>
impl<'s> PartialEq<Record<'s>> for Record<'s>
impl<'s> Copy for Record<'s>
impl<'s> Eq for Record<'s>
impl<'s> StructuralEq 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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more