WIP: Improved heap management

This commit is contained in:
Chad Attermann committed 2024-07-03 10:57:27 -06:00
1 parent bef8dbc1b0
commit 2d3b3d586f
8 files changed
+104 -61

No files matched your search

+2 -2
View File
@@ -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));