This page has been translated automatically.
Getting Started
Migrating to UNIGINE 2.0
C++ API Migration
UnigineScript
The Language
Core Library
Engine Library
Node-Related Classes
GUI-Related Classes
Plugins Library
High-Level Systems
Samples
Usage Examples
C++ API
API Reference
Integration Samples
Usage Examples
C++ Plugins
Warning! This version of documentation is OUTDATED, as it describes an older SDK version! Please switch to the documentation for the latest SDK version.
Warning! This version of documentation describes an old SDK version which is no longer supported! Please upgrade to the latest SDK version.

engine.memory Functions

This set of functions control memory allocation by Unigine.

int engine.memory.getHeapUsage ()

Shows the overall amount of allocated memory pools in bytes.

Return value

Allocated memory pools in bytes.

int engine.memory.getMemoryUsage ()

Shows the overall amount of used memory in bytes.

Return value

Used memory in bytes.

int engine.memory.getNumAllocations ()

Shows overall number of memory allocation operations.

Return value

Number of memory allocations.

int engine.memory.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: 2017-07-03
Build: ()