mirror of
https://github.com/ratspeak/microReticulum
synced 2026-11-27 13:52:14 +00:00
WIP: Improved heap management
This commit is contained in:
1 parent
bef8dbc1b0
commit
2d3b3d586f
8 files changed
+104
-61
No files matched your search
@@ -10,7 +10,7 @@ using namespace RNS::Utilities;
|
||||
|
||||
void testListDirectory() {
|
||||
|
||||
size_t pre_memory = OS::memory_available();
|
||||
size_t pre_memory = OS::heap_available();
|
||||
info("testListDirectory: pre-mem: " + std::to_string(pre_memory));
|
||||
|
||||
for (int i = 0; i < 1; i++) {
|
||||
@@ -21,7 +21,7 @@ void testListDirectory() {
|
||||
}
|
||||
}
|
||||
|
||||
size_t post_memory = OS::memory_available();
|
||||
size_t post_memory = OS::heap_available();
|
||||
size_t diff_memory = (int)pre_memory - (int)post_memory;
|
||||
info("testListDirectory: post-mem: " + std::to_string(post_memory));
|
||||
info("testListDirectory: diff-mem: " + std::to_string(diff_memory));
|
||||
|
||||
Reference in new issue
Block a user