Skip to main content

Module allocator

Module allocator 

Source
Expand description

An allocator used to control the lifetime of allocations

Structs§

AllocatorDiagnosticPlugin
A plugin which registers various allocator diagnostics
AppReflectAllocator
Wrapper around a ReflectAllocator which can be freely copied and shared between threads
OwningPtr
Pointer which owns the value it points to, and will deallocate it when dropped
ReflectAllocation
A boxed PartialReflect value
ReflectAllocationId
Unique identifier for an allocation
ReflectAllocator
Allocator used to allocate and deallocate dyn PartialReflect values Used to be able to ensure we have a “common root” for values allocated outside the world.

Constants§

ALLOCATOR_TOTAL_COLLECTED_DIAG_PATH
The path used for the total number of deallocated allocations diagnostic
ALLOCATOR_TOTAL_DIAG_PATH
The path used for the total number of allocations diagnostic

Functions§

garbage_collector
Cleans up dangling script allocations
measure_allocations
Measures the number of allocations in the allocator and other diagnostics when enabled