mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-09-25 08:26:31 +08:00
feat(heap): add option to enable/disable heap trace function
This commit is contained in:
@ -12,6 +12,10 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#include "sdkconfig.h"
|
||||
|
||||
#ifdef CONFIG_HEAP_TRACING
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "esp_heap_caps.h"
|
||||
@ -146,3 +150,5 @@ void heap_trace_dump(void)
|
||||
_heap_caps_unlock(num);
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* CONFIG_HEAP_TRACING */
|
||||
|
Reference in New Issue
Block a user