Kconfig 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. menu "Heap memory debugging"
  2. choice HEAP_CORRUPTION_DETECTION
  3. prompt "Heap corruption detection"
  4. default HEAP_POISONING_DISABLED
  5. help
  6. Enable heap poisoning features to detect heap corruption caused by out-of-bounds access to heap memory.
  7. See the "Heap Memory Debugging" page of the IDF documentation
  8. for a description of each level of heap corruption detection.
  9. config HEAP_POISONING_DISABLED
  10. bool "Basic (no poisoning)"
  11. config HEAP_POISONING_LIGHT
  12. bool "Light impact"
  13. config HEAP_POISONING_COMPREHENSIVE
  14. bool "Comprehensive"
  15. endchoice
  16. config HEAP_TRACING
  17. bool "Enable heap tracing"
  18. help
  19. Enables the heap tracing API defined in esp_heap_trace.h.
  20. This function causes a moderate increase in IRAM code side and a minor increase in heap function
  21. (malloc/free/realloc) CPU overhead, even when the tracing feature is not used. So it's best to keep it disabled
  22. unless tracing is being used.
  23. config HEAP_TRACING_STACK_DEPTH
  24. int "Heap tracing stack depth"
  25. range 0 10
  26. default 2
  27. depends on HEAP_TRACING
  28. help
  29. Number of stack frames to save when tracing heap operation callers.
  30. More stack frames uses more memory in the heap trace buffer (and slows down allocation), but
  31. can provide useful information.
  32. config HEAP_TASK_TRACKING
  33. bool "Enable heap task tracking"
  34. depends on !HEAP_POISONING_DISABLED
  35. help
  36. Enables tracking the task responsible for each heap allocation.
  37. This function depends on heap poisoning being enabled and adds four more bytes of overhead for each block
  38. allocated.
  39. endmenu