Skip to main content

DebugSnapshot

Struct DebugSnapshot 

Source
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: bool

Whether this snapshot has been populated at least once

§reload_count: u32§last_reload_mode: Option<String>§reload_failed: bool

Whether 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: usize

Total number of systems across all schedules

§python_gc_objects: usize

Python GC tracked objects (gen0 + gen1 + gen2)

§memory_growth_mb: f64

Memory growth since baseline (MB)

§memory_peak_mb: f64

Peak memory observed (MB)

§memory_warning: bool

Whether 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

Source§

fn clone(&self) -> DebugSnapshot

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Default for DebugSnapshot

Source§

fn default() -> DebugSnapshot

Returns the “default value” for a type. Read more
Source§

impl Resource for DebugSnapshot
where Self: Send + Sync + 'static,

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> Downcast for T
where T: Any,

Source§

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>

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)

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)

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
where T: Any + Send,

Source§

fn into_any_send(self: Box<T>) -> Box<dyn Any + Send>

Converts Box<Trait> (where Trait: DowncastSend) to Box<dyn Any + Send>, which can then be downcast into Box<ConcreteType> where ConcreteType implements Trait.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromWorld for T
where T: Default,

Source§

fn from_world(_world: &mut World) -> T

Creates Self using default().

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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 more
Source§

impl<T> IntoResult<T> for T

Source§

fn into_result(self) -> Result<T, RunSystemError>

Converts this type into the system output type.
Source§

impl<A> Is for A
where A: Any,

Source§

fn is<T>() -> bool
where T: Any,

Checks if the current type “is” another type, using a TypeId equality comparison. This is most useful in the context of generic logic. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> TypeData for T
where T: 'static + Send + Sync + Clone,

Source§

fn clone_type_data(&self) -> Box<dyn TypeData>

Creates a type-erased clone of this value.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ConditionalSend for T
where T: Send,

Source§

impl<T> Settings for T
where T: 'static + Send + Sync,

Source§

impl<T> Ungil for T
where T: Send,