pub struct LevelStreamingProfiler {
pub frame_timings: VecDeque<f32>,
pub load_timings: HashMap<u64, f32>,
pub queue_depth_history: VecDeque<usize>,
pub memory_history_full: VecDeque<f32>,
pub bandwidth_tracker: WorldStreamingBandwidthTracker,
pub total_frames_profiled: u64,
}Expand description
Level streaming profiler
Fields§
§frame_timings: VecDeque<f32>§load_timings: HashMap<u64, f32>§queue_depth_history: VecDeque<usize>§memory_history_full: VecDeque<f32>§bandwidth_tracker: WorldStreamingBandwidthTracker§total_frames_profiled: u64Implementations§
Source§impl LevelStreamingProfiler
impl LevelStreamingProfiler
pub fn new() -> Self
pub fn record_frame( &mut self, timing_ms: f32, queue_depth: usize, memory_mb: f32, streamed_mb: f32, dt_s: f32, )
pub fn average_frame_time_ms(&self) -> f32
pub fn p99_frame_time_ms(&self) -> f32
pub fn max_queue_depth(&self) -> usize
pub fn peak_memory_mb(&self) -> f32
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LevelStreamingProfiler
impl RefUnwindSafe for LevelStreamingProfiler
impl Send for LevelStreamingProfiler
impl Sync for LevelStreamingProfiler
impl Unpin for LevelStreamingProfiler
impl UnsafeUnpin for LevelStreamingProfiler
impl UnwindSafe for LevelStreamingProfiler
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.