nebble/foundation/memory

Search:
Group by:
Source   Edit  

High-level Nim wrapper for Pebble Memory Management API.

Provides heap memory statistics and cache control functions.

Procs

proc heapBytesFree(): int {.inline, ...raises: [], tags: [], forbids: [].}
Get the amount of free heap memory in bytes. Equivalent to C function heap_bytes_free(). Source   Edit  
proc heapBytesUsed(): int {.inline, ...raises: [], tags: [], forbids: [].}
Get the amount of used heap memory in bytes. Equivalent to C function heap_bytes_used(). Source   Edit  
proc memoryCacheFlush(start: pointer; size: int) {.inline, ...raises: [], tags: [],
    forbids: [].}
Flush the data cache for a specific memory range. Equivalent to C function memory_cache_flush(start, size). NOTE: Not available on Aplite. Source   Edit