pub struct Profiler {
pub timestamp_period: f32,
/* private fields */
}Fields§
§timestamp_period: f32The amount of nanoseconds each tick of a timestamp query represents
Implementations§
Source§impl Profiler
impl Profiler
pub fn query_count(&self) -> u32
pub fn query_index(&self) -> u32
pub fn new(device: &Device, queue: &Queue) -> Self
pub fn timestamp(&self, _label: &str, encoder: &mut CommandEncoder)
pub fn begin_stats(&self, render_pass: &mut RenderPass<'_>)
pub fn end_stats(&self, render_pass: &mut RenderPass<'_>)
Sourcepub fn resolve(&self, encoder: &mut CommandEncoder)
pub fn resolve(&self, encoder: &mut CommandEncoder)
Must be called before get()
pub fn timestamp_report(&self, device: &Device) -> Vec<(String, f32)>
pub fn clear(&self)
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Profiler
impl !RefUnwindSafe for Profiler
impl !Sync for Profiler
impl !UnwindSafe for Profiler
impl Send for Profiler
impl Unpin for Profiler
impl UnsafeUnpin for Profiler
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