diff options
| author | Be <be.0@gmx.com> | 2025-03-04 16:53:59 -0600 |
|---|---|---|
| committer | Be <be.0@gmx.com> | 2025-03-24 11:32:00 -0500 |
| commit | 22fd238ed220d1cd0df683841e6beca5efe803ed (patch) | |
| tree | a563697a8d32401399f6a6bdd23bfe1e04cdf6d4 | |
| parent | 8dee86f1f3611c8ca5d3f565128025e90f0cc6a7 (diff) | |
| download | tangara-fw-22fd238ed220d1cd0df683841e6beca5efe803ed.tar.gz | |
app console: add largest free block size to `heaps`
This is the maximum amount that malloc can currently allocate in a
single allocation.
| -rw-r--r-- | src/tangara/app_console/app_console.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tangara/app_console/app_console.cpp b/src/tangara/app_console/app_console.cpp index 8a3df7c3..49cb9788 100644 --- a/src/tangara/app_console/app_console.cpp +++ b/src/tangara/app_console/app_console.cpp @@ -362,12 +362,16 @@ int CmdHeaps(int argc, char** argv) { << std::endl; std::cout << (heap_caps_get_minimum_free_size(MALLOC_CAP_DMA) / 1024) << " KiB free at lowest" << std::endl; + std::cout << (heap_caps_get_largest_free_block(MALLOC_CAP_DMA) / 1024) + << " KiB largest free block" << std::endl; std::cout << "heap stats (external):" << std::endl; std::cout << (heap_caps_get_free_size(MALLOC_CAP_SPIRAM) / 1024) << " KiB free" << std::endl; std::cout << (heap_caps_get_minimum_free_size(MALLOC_CAP_SPIRAM) / 1024) << " KiB free at lowest" << std::endl; + std::cout << (heap_caps_get_largest_free_block(MALLOC_CAP_SPIRAM) / 1024) + << " KiB largest free block" << std::endl; return 0; } |
