Merge branch 'feature/add_heap_info_per_task_example' into 'master'

Add Task Heap Tracking example

See merge request espressif/esp-idf!7750
This commit is contained in:
Angus Gratton
2020-03-23 14:07:00 +08:00
8 changed files with 147 additions and 0 deletions

View File

@@ -117,6 +117,16 @@ Calls to :cpp:func:`heap_caps_check_integrity` may print errors relating to 0xFE
- For free heap blocks, the checker expects to find all bytes set to 0xFE. Any other values indicate a use-after-free bug where free memory has been incorrectly overwritten.
- For allocated heap blocks, the behaviour is the same as for `Light Impact` mode. The canary bytes 0xABBA1234 and 0xBAAD5678 are checked at the head and tail of each allocated buffer, and any variation indicates a buffer overrun/underrun.
.. _heap-task-tracking:
Heap Task Tracking
------------------
Heap Task Tracking can be used to get per task info for heap memory allocation.
Application has to specify the heap capabilities for which the heap allocation is to be tracked.
Example code is provided in :example:`system/heap_task_tracking`
.. _heap-tracing:
Heap Tracing