Donny9 opened a new pull request, #6685: URL: https://github.com/apache/incubator-nuttx/pull/6685
## Summary 1. Output memory info about each task when malloc failed. * I think outputting each task information directly is more useful than dumping the entire heap, because it can be clear know who is occupying the most memory blocks, who may leak, and if there is too much dump heap, it may trigger wdt interrupt. example:  2. change the type config MM_BACKTRACE from bool to int. Initially, the entire backtrace function relied on DEBUG_MM, but due to the conflict with memory-related log output control, it was replaced with a new config MM_BACKTRACE. * Therefore, this config will control the trace function, including pid information and backtrace information, but some platforms have limited resources, and these two information need to be controlled separately, so thid PR will do this: * when MM_BACKTRACE = -1, disable trace function * when MM_BACKTRACE = 0, only enable pid information for trac function. * when MM_BACKTRACE = 8, enbale entir trace function. 8 is the default backtrace stack depth, if you need a larger depth, you need to update MM_MIN_SHIFT in mm/mm_heap/mm.h synchronously. ## Impact memory debug function ## Testing Vlea CI -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org