Unigine::Memory Class
Header: | #include <UnigineMemory.h> |
Memory Class
Members
static void isInitialized ( ) #
Returns the status of the memory manager.static void * allocate ( size_t size ) #
Allocates the dynamic memory.Arguments
- size_t size - Size of the allocated memory block.
Return value
Allocated memory block.static void deallocate ( void * ptr ) #
Deallocates the dynamic memory.Arguments
- void * ptr - Pointer to the allocated memory block.
static void deallocate ( void * ptr, size_t size ) #
Deallocates the dynamic memory.Arguments
- void * ptr - Pointer to the allocated memory block.
- size_t size - Size of the allocated memory block.
size_t getHeapUsage ( ) #
Shows the overall amount of allocated memory pools in bytes.Return value
Allocated memory pools in bytes.size_t getMemoryUsage ( ) #
Shows the overall amount of used memory in bytes.Return value
Used memory in bytes.size_t getSystemUsage ( ) #
Shows the overall amount of used system memory in bytes.Return value
Used system memory in bytes.int getNumAllocations ( ) #
Shows overall number of memory allocation operations.Return value
Number of memory allocations.int getNumFrameAllocations ( ) #
Number of memory allocations between calls of this function, which is called each frame by the engine.Return value
Number of memory allocations between calls of this function.Last update:
2020-04-10
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)