Commit graph

5 commits

Author SHA1 Message Date
Stephen Casner
eb9f77247a Revise memory diagnostics to use task handle not task name
In addition, aggregation of the sizes of blocks allocated by each task
to get a total is now done in new mem_debug_malloc_dump_totals() so it
is not necessary to dump info for each individual heap block into an
array for the app code.  Only the blocks belonging to specific tasks
will be dumped when those tasks are selected by the user for a
detailed list of blocks.

This change in the memory diagnostic API is indicated by a change in
the conditional configENABLE_MEMORY_DEBUG_DUMP from 1 to 2.
2017-11-01 00:32:39 -07:00
Stephen Casner
88ab5d4830 Return region tag in mem_debug_malloc_dump()
Also in mem_init_dog() avoid making a byte access to the task name in
the debug block because that fails for the IRAM heap region.
2017-10-22 00:25:10 -07:00
Stephen Casner
ab27c84cae Add heap debugging functions 2017-10-19 00:10:45 -07:00
Jeroen Domburg
293ad4cd36 Add xPortGetFreeHeapSizeCaps and xPortGetMinimumEverFreeHeapSizeCaps plus everything it entails. Allows querying the available memory for various capabilities. Also: xPortGetFreeHeapSize and xPortGetMinimumEverFreeHeapSize now return the expected value. Bonus: the linked list used in the allocator is now 4 bytes smaller, which should save some memory. 2016-12-15 15:03:22 +08:00
liuzhifu
b21d2dfa6b FreeRTOS: temporary solution for memory canaries and memory debug
1. This is just a temporary solution, it will be removed when umm_malloc is ready
2. Support memory canaries mechanism
2. Add debug code to show allocated memory info
2016-09-07 21:52:24 +08:00