MemoryManager which activates the use of external SPIRAM memory. When external memory is in use, the allocation strategy is to initially try to satisfy smaller allocation requests with internal memory and larger requests with external memory. This sets the limit between the two, as well as generally enabling allocation in external memory.
More...
#include <MemoryManager.h>
|
| | MemoryManager ()=default |
| | Default Constructor - call begin() to activate PSRAM.
|
| |
| | MemoryManager (int limit) |
| | Constructor which activates PSRAM. This constructor automatically calls begin()
|
| |
| bool | begin (int limit=10000) |
| | Activate the PSRAM for allocated memory > limit.
|
| |
MemoryManager which activates the use of external SPIRAM memory. When external memory is in use, the allocation strategy is to initially try to satisfy smaller allocation requests with internal memory and larger requests with external memory. This sets the limit between the two, as well as generally enabling allocation in external memory.
- Note
- Supported only on ESP32 platforms with external PSRAM!
◆ MemoryManager() [1/2]
Default Constructor - call begin() to activate PSRAM.
◆ MemoryManager() [2/2]
Constructor which activates PSRAM. This constructor automatically calls begin()
◆ begin()
| bool begin |
( |
int |
limit = 10000 | ) |
|
|
inline |
Activate the PSRAM for allocated memory > limit.
The documentation for this class was generated from the following file: