Skip to content

ludus::foundation::AllocationStatistics

Ludus Wiki · API overview · Browse API

Struct

One relaxed sample of an allocation domain's counters.
Requested bytes are the sizes passed to TryAllocate, not backend usable, committed or resident bytes. Zero-byte requests create no block.

Declared in modules/foundation/memory/include/ludus/foundation/memory/allocation_statistics.hpp

#include <ludus/foundation/memory/allocation_statistics.hpp>
struct ludus::foundation::AllocationStatistics final

Fields

LiveRequestedBytes

usize ludus::foundation::AllocationStatistics::LiveRequestedBytes = 0
Requested bytes allocated and not yet freed.

Related types: usize

Declared in modules/foundation/memory/include/ludus/foundation/memory/allocation_statistics.hpp

LiveBlocks

usize ludus::foundation::AllocationStatistics::LiveBlocks = 0
Nonzero blocks allocated and not yet freed.

Related types: usize

Declared in modules/foundation/memory/include/ludus/foundation/memory/allocation_statistics.hpp

PeakRequestedBytes

usize ludus::foundation::AllocationStatistics::PeakRequestedBytes = 0
High-water of LiveRequestedBytes for this domain only.

Related types: usize

Declared in modules/foundation/memory/include/ludus/foundation/memory/allocation_statistics.hpp

AllocatedBytes

uint64 ludus::foundation::AllocationStatistics::AllocatedBytes = 0
Cumulative requested bytes successfully allocated.

Related types: uint64

Declared in modules/foundation/memory/include/ludus/foundation/memory/allocation_statistics.hpp

FreedBytes

uint64 ludus::foundation::AllocationStatistics::FreedBytes = 0
Cumulative requested bytes freed.

Related types: uint64

Declared in modules/foundation/memory/include/ludus/foundation/memory/allocation_statistics.hpp

AllocationCount

uint64 ludus::foundation::AllocationStatistics::AllocationCount = 0
Cumulative successful nonzero allocations.

Related types: uint64

Declared in modules/foundation/memory/include/ludus/foundation/memory/allocation_statistics.hpp

FreeCount

uint64 ludus::foundation::AllocationStatistics::FreeCount = 0
Cumulative non-null frees.

Related types: uint64

Declared in modules/foundation/memory/include/ludus/foundation/memory/allocation_statistics.hpp

FailureCount

uint64 ludus::foundation::AllocationStatistics::FailureCount = 0
Valid requests that the backend could not satisfy.

Related types: uint64

Declared in modules/foundation/memory/include/ludus/foundation/memory/allocation_statistics.hpp

RejectedCount

uint64 ludus::foundation::AllocationStatistics::RejectedCount = 0
Requests rejected before the backend (invalid alignment or missing callback).

Related types: uint64

Declared in modules/foundation/memory/include/ludus/foundation/memory/allocation_statistics.hpp

Validity

AccountingValidity ludus::foundation::AllocationStatistics::Validity = AccountingValidity::Valid
Sticky validity of the values above.

Related types: AccountingValidity

Declared in modules/foundation/memory/include/ludus/foundation/memory/allocation_statistics.hpp