summaryrefslogtreecommitdiffstats
path: root/firmware/target
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2020-10-05 03:28:02 -0400
committerWilliam Wilgus <wilgus.william@gmail.com>2020-10-05 11:53:27 -0400
commitef34126913978c7cd6e5b0831f78ac8355f053f0 (patch)
tree4a719e60a52d19031ed485d8c9e9fd64e446ef97 /firmware/target
parent74258fca311b2d7e9d834ab8607f2bd326f67807 (diff)
downloadrockbox-ef34126913978c7cd6e5b0831f78ac8355f053f0.tar.gz
rockbox-ef34126913978c7cd6e5b0831f78ac8355f053f0.tar.bz2
rockbox-ef34126913978c7cd6e5b0831f78ac8355f053f0.zip
lua add better memory stats
lua gives you a memory used number that only reflects the current allocations if fact it doesn't even give you a way to get the amount of ram free rb.mem_stats() seeks to fill this gap by marking the memory allocated for lua with a sentinel value which can later be checked to get a high water mark of the ram used by lua and a pretty good idea of how much ram is available Also includes an example script usage: used, allocd, free = rb.mem_stats() Change-Id: Ia282869f989848324d7d88c7df4827fdbce4fb4e
Diffstat (limited to 'firmware/target')
0 files changed, 0 insertions, 0 deletions