from panda3d.core import NeverFreeMemory
This class is used to allocate bytes of memory from a pool that is never intended to be freed. It is particularly useful to support DeletedChain, which allocates memory in just such a fashion.
When it is known that memory will not be freed, it is preferable to use this instead of the standard malloc() (or global_operator_new()) call, since this will help reduce fragmentation problems in the dynamic heap. Also, memory allocated from here will exhibit less wasted space.
getTotalAlloc() → int¶
Returns the total number of bytes consumed by all the pages allocated internally by this object.
getTotalUnused() → int¶