I am on Windows 10(Home edition) and refering to the Heap Log Analyser Documentation . It is written that when we set the debug level to 3 and add 'build_vars' to the 'mos.yml' , rebuild and flash it , we get to see alot of hl{...} in our console log. I am running the default mjs example code and for me the console log is not showing anything new regarding the heap log messages. I have attached my yml file and the console.log. Thanks...
Comments
Heap log tracing is available only for ESP8266:
@nliviu I have noticed that whenever a core dump happens, it creates a file named 'core-...' inside the app directory. Is there any way to analyse the core dumps on esp32? I can't figure out the cause for it by looking at the generated files
.My guess is it is related to heap .The core-dump file starts with something like this:
<`--- BEGIN CORE DUMP ---
{"app": "MyApp", "arch": "esp32", "version": "1.0", "build_id": "20190126-105326", "build_image": "docker.io/mgos/esp32-build:3.2-r1",
"REGS": {"addr": 1073533444, "data": "
UMMAQIilEIDgmPw/AAAAAORQ+z8WCAAAAAAAAHsiZGEiZGF0YSI6ewAAAAAAAAAAAwAAAMCY/D/ImPw/AQAAAAoAAADvvq3e776t3u++rd7vvq3e776t3u++rd7vvq3e776t3u++rd7vvq3e776t3u++rd7vvq3e
776t3u++rd7vvq3e776t3u++rd7vvq3e776t3u++rd7vvq3e776t3u++rd7vvq3e776t3u++rd7vvq3e776t3u++rd7vvq3e776t3u++rd7vvq3e776t3u++rd7vvq3e776t3u++rd7vvq3e776t3u++rd7vvq3e
+9Uc3E6XuqSK1Cpi7anaxH61vnOEyNmSN5WuDlMkHzQZ2eNCW7yA2Phj8/NEJ9PW0moBb3bnCrc8Pc1BicS81ztSJrMT4DO6dNicYevRmLwJI
hH7Y8oU9MqBVEDSktye2Omkk19oQpjBmrmVSxrq30OBvXw5srmA+Y+PFjcnd6zrixZwXfqq9YXsJHKLic/SKhSuHTFaiN19csy+VaIX9op1ywGptwprsdnd7K0DY3kCjldkvMY3Raj8BKJV1lD43BkhkmYm3aVng'>
mos debug-core-dump core_file_here
Or if you have
mos console
running, you'll see the results of the analysis.