CRM64Pro GDK v0.14.0
A free cross-platform game development kit built on top of SDL 3.0
Loading...
Searching...
No Matches
CRM64Pro::CMem

CMem: CRM64Pro Memory Manager. More...

Enumerations

enum  eMemStatsLevel { MSL_NULL = 0 , MSL_NORMAL = 2 , MSL_HIGH = 4 , MSL_VERBOSE = 8 }
 Memory statistics verbosity. More...

Functions

Sint32 setModuleName (Uint32 iModule, const char *szName)
 Set the name for a custom user module.
void setVerboseSampleInterval (Sint32 iInterval)
 Set time interval between each sample when the stats level is ::MSL_VERBOSE. By default it is set to 500ms.
void setLogLevel (eMemStatsLevel eMSL)
 Set the memory stats gathering level.
void * alloc (size_t iSize, Uint32 iModule)
 Reserve a memory block using C64 Memory Manager.
void * calloc (size_t iNum, size_t iSize, Uint32 iModule)
 Reserve a memory block using C64 Memory Manager and reset it to 0.
void * realloc (void *pMem, size_t iSize, Uint32 iModule)
 Reallocate a memory block using C64 Memory Manager.
void * alloc_aligned (size_t iSize, size_t iAlign, Uint32 iModule)
 Reserve a memory block using C64 Memory Manager aligned to the desired value.
void free (void *pMem)
 Deallocate a memory block using C64 Memory Manager.
void free_aligned (void *pMem)
 Deallocate a memory block using C64 Memory Manager.
void destroy ()
 Releases the internal heap and displays final stats.
Sint32 info (Sint32 iMode)
 Output useful information about the memory usage.

Detailed Description

CMem: CRM64Pro Memory Manager.