pub struct StreamingMetricsDashboard {Show 22 fields
pub frame_number: u64,
pub current_time: f64,
pub loads_this_frame: u32,
pub unloads_this_frame: u32,
pub total_loads: u64,
pub total_unloads: u64,
pub peak_memory_mb: f32,
pub current_memory_mb: f32,
pub memory_budget_mb: f32,
pub avg_load_time_ms: f32,
pub max_load_time_ms: f32,
pub streaming_stalls: u32,
pub frames_with_load: u32,
pub active_levels: u32,
pub loading_levels: u32,
pub visible_levels: u32,
pub culled_levels: u32,
pub bytes_loaded_this_sec: u64,
pub bytes_unloaded_this_sec: u64,
pub bandwidth_utilization: f32,
pub memory_history: VecDeque<f32>,
pub fps_history: VecDeque<f32>,
/* private fields */
}Fields§
§frame_number: u64§current_time: f64§loads_this_frame: u32§unloads_this_frame: u32§total_loads: u64§total_unloads: u64§peak_memory_mb: f32§current_memory_mb: f32§memory_budget_mb: f32§avg_load_time_ms: f32§max_load_time_ms: f32§streaming_stalls: u32§frames_with_load: u32§active_levels: u32§loading_levels: u32§visible_levels: u32§culled_levels: u32§bytes_loaded_this_sec: u64§bytes_unloaded_this_sec: u64§bandwidth_utilization: f32§memory_history: VecDeque<f32>§fps_history: VecDeque<f32>Implementations§
Source§impl StreamingMetricsDashboard
impl StreamingMetricsDashboard
pub fn new(history_capacity: usize) -> Self
pub fn begin_frame(&mut self, time: f64, fps: f32)
pub fn record_load(&mut self, load_time_ms: f32, bytes: u64)
pub fn record_unload(&mut self, bytes: u64)
pub fn record_stall(&mut self)
pub fn update_memory(&mut self, used_mb: f32)
pub fn memory_utilization(&self) -> f32
pub fn average_fps(&self) -> f32
pub fn min_fps(&self) -> f32
pub fn memory_trend(&self) -> f32
pub fn is_memory_critical(&self) -> bool
pub fn is_bandwidth_saturated(&self) -> bool
pub fn report_summary(&self) -> HashMap<String, f32>
Trait Implementations§
Source§impl Clone for StreamingMetricsDashboard
impl Clone for StreamingMetricsDashboard
Source§impl Debug for StreamingMetricsDashboard
impl Debug for StreamingMetricsDashboard
Auto Trait Implementations§
impl Freeze for StreamingMetricsDashboard
impl RefUnwindSafe for StreamingMetricsDashboard
impl Send for StreamingMetricsDashboard
impl Sync for StreamingMetricsDashboard
impl Unpin for StreamingMetricsDashboard
impl UnsafeUnpin for StreamingMetricsDashboard
impl UnwindSafe for StreamingMetricsDashboard
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.