Skip to content

Latest commit

 

History

History
12 lines (10 loc) · 658 Bytes

230907.find-memory-consumption.md

File metadata and controls

12 lines (10 loc) · 658 Bytes

https://discordapp.com/channels/918498540232253480/918498540232253483/1149372634803482654

floitsch — 09/07/2023 8:56 AM The best is to figure out where the memory is going. You can use: print-objects: https://libs.toit.io/core/utils/library-summary#print_objects(2%2C0%2C0%2C) process-stats: https://libs.toit.io/core/utils/library-summary#process_stats(2%2C0%2C0%2Cgc) dump-heap: https://libs.toit.io/esp32/library-summary#dump_heap(0%2C0%2C0%2C)

print-objects helps you to figure out which objects in your own heap take up space. process-stats helps you to track changes in memory and when GCs happen, ... dump-heap is for global "who is using memory".