pub struct MarkerLog {
pub markers: Vec<ProfileMarker>,
}Expand description
Collection of profile markers for a session.
Fields§
§markers: Vec<ProfileMarker>Implementations§
Source§impl MarkerLog
impl MarkerLog
pub fn mark(&mut self, name: &str, time_ns: u64, frame: u64, extra: &str)
pub fn mark_colored( &mut self, name: &str, time_ns: u64, frame: u64, color: [f32; 4], )
pub fn since_frame(&self, frame: u64) -> impl Iterator<Item = &ProfileMarker>
pub fn clear_before(&mut self, frame: u64)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MarkerLog
impl RefUnwindSafe for MarkerLog
impl Send for MarkerLog
impl Sync for MarkerLog
impl Unpin for MarkerLog
impl UnsafeUnpin for MarkerLog
impl UnwindSafe for MarkerLog
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