whitecatboard / Lua-RTOS-ESP32

Lua RTOS for ESP32
Other
1.18k stars 221 forks source link

add heap information to thread.list #308

Open the0ne opened 4 years ago

the0ne commented 4 years ago

adds the count of heap blocks and the total allocated heap bytes for each process.

note that thread.list now also includes dead threads that have exited already but didn't free all of their allocated heap.

make sure to have CONFIG_HEAP_TASK_TRACKING enabled to get heap information in thread.list - please note that either CONFIG_HEAP_POISONING_LIGHT (recommended) or CONFIG_HEAP_POISONING_COMPREHENSIVE will be required as well.

file formatting has been updated in a separate commit.