pub struct DebugSnapshot {Show 23 fields
pub populated: bool,
pub reload_count: u32,
pub last_reload_mode: Option<String>,
pub reload_failed: bool,
pub reload_failure_reason: Option<String>,
pub memory_mb: f64,
pub total_memory_mb: f64,
pub cpu_percent: f32,
pub cpu_core_count: usize,
pub fps_average: f32,
pub fps_current: f32,
pub uptime_secs: f64,
pub entity_count: usize,
pub asset_counts: Vec<(String, usize)>,
pub gil_enabled: bool,
pub update_profiles: Vec<(String, f64)>,
pub startup_profiles: Vec<(String, f64)>,
pub total_schedule_systems: usize,
pub python_gc_objects: usize,
pub memory_growth_mb: f64,
pub memory_peak_mb: f64,
pub memory_warning: bool,
pub reload_memory_snapshots: Vec<ReloadMemorySnapshotInfo>,
}Expand description
Snapshot of debug overlay data, updated ~4x/sec by the overlay system.
Fields§
§populated: boolWhether this snapshot has been populated at least once
reload_count: u32§last_reload_mode: Option<String>§reload_failed: boolWhether the last reload attempt failed (app running previous generation)
reload_failure_reason: Option<String>Reason for reload failure, if any
memory_mb: f64§total_memory_mb: f64§cpu_percent: f32§cpu_core_count: usize§fps_average: f32§fps_current: f32§uptime_secs: f64§entity_count: usize§asset_counts: Vec<(String, usize)>Asset type name → count (e.g. “Mesh” → 9)
gil_enabled: bool§update_profiles: Vec<(String, f64)>Top update/last systems: (name, avg_ms)
startup_profiles: Vec<(String, f64)>Startup systems: (name, avg_ms)
total_schedule_systems: usizeTotal number of systems across all schedules
python_gc_objects: usizePython GC tracked objects (gen0 + gen1 + gen2)
memory_growth_mb: f64Memory growth since baseline (MB)
memory_peak_mb: f64Peak memory observed (MB)
memory_warning: boolWhether memory growth exceeds warning threshold
reload_memory_snapshots: Vec<ReloadMemorySnapshotInfo>Per-reload memory snapshots (most recent last, capped at 20)
Trait Implementations§
Source§impl Clone for DebugSnapshot
impl Clone for DebugSnapshot
Source§fn clone(&self) -> DebugSnapshot
fn clone(&self) -> DebugSnapshot
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for DebugSnapshot
impl Default for DebugSnapshot
Source§fn default() -> DebugSnapshot
fn default() -> DebugSnapshot
Returns the “default value” for a type. Read more
impl Resource for DebugSnapshot
Auto Trait Implementations§
impl Freeze for DebugSnapshot
impl RefUnwindSafe for DebugSnapshot
impl Send for DebugSnapshot
impl Sync for DebugSnapshot
impl Unpin for DebugSnapshot
impl UnsafeUnpin for DebugSnapshot
impl UnwindSafe for DebugSnapshot
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
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>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn 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>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which 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)
Converts
&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)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> FromWorld for Twhere
T: Default,
impl<T> FromWorld for Twhere
T: Default,
Source§fn from_world(_world: &mut World) -> T
fn from_world(_world: &mut World) -> T
Creates Self using default().
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
Source§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.
Source§impl<T> TypeData for T
impl<T> TypeData for T
Source§fn clone_type_data(&self) -> Box<dyn TypeData>
fn clone_type_data(&self) -> Box<dyn TypeData>
Creates a type-erased clone of this value.