[][src]Struct gpu_allocator::AllocatorDebugSettings

pub struct AllocatorDebugSettings {
    pub log_memory_information: bool,
    pub log_leaks_on_shutdown: bool,
    pub store_stack_traces: bool,
    pub log_allocations: bool,
    pub log_frees: bool,
    pub log_stack_traces: bool,
}

Fields

log_memory_information: bool

Logs out debugging information about the various heaps the current device has on startup

log_leaks_on_shutdown: bool

Logs out all memory leaks on shutdown with log level Warn

store_stack_traces: bool

Stores a copy of the full backtrace for every allocation made, this makes it easier to debug leaks or other memory allocations, but storing stack traces has a RAM overhead so should be disabled in shipping applications.

log_allocations: bool

Log out every allocation as it's being made with log level Debug, rather spammy so off by default

log_frees: bool

Log out every free that is being called with log level Debug, rather spammy so off by default

log_stack_traces: bool

Log out stack traces when either log_allocations or log_frees is enabled.

Trait Implementations

impl Clone for AllocatorDebugSettings[src]

impl Copy for AllocatorDebugSettings[src]

impl Debug for AllocatorDebugSettings[src]

impl Default for AllocatorDebugSettings[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.