Hi ESP-IDF,
If I don't connect ESP32's serial port. Would be all "ESP_LOGx()" still get called? Will they drag down ESP32's performance & eating up my precious 512KB SRAM?
If it is the case, are there ways to turn them off or just turn off some of them "on-fly"? Say turn these log level through Web Server, and the webserver call some kind of System API?
Cheers
Gfast2
ESP_LOGx() slow down the speed?
Re: ESP_LOGx() slow down the speed?
esp_log_level_set allows filtering log messages by tag at run time. It also has a '*' wildcard to change log level for all tags.
esp_log_set_vprintf, which you already know of, can be replaced with a no-op function to prevent formatting from happening.
http://esp-idf.readthedocs.io/en/latest ... m/log.html
esp_log_set_vprintf, which you already know of, can be replaced with a no-op function to prevent formatting from happening.
http://esp-idf.readthedocs.io/en/latest ... m/log.html
Re: ESP_LOGx() slow down the speed?
Hi ESP_igrr,
BIG THANKS again! I really appreciate your answers!
(It's a shame to asking this question. After I saw your answers, I can remember, that I even have had used this API some months before... But any way. I will push myself to brew the best ESP32 project I can, and let my colleagues who develops Linux Box & pround of their achievements get a big "wow" from my ESP32 based project! )
Cheers
Gfast2
BIG THANKS again! I really appreciate your answers!
(It's a shame to asking this question. After I saw your answers, I can remember, that I even have had used this API some months before... But any way. I will push myself to brew the best ESP32 project I can, and let my colleagues who develops Linux Box & pround of their achievements get a big "wow" from my ESP32 based project! )
Cheers
Gfast2
Who is online
Users browsing this forum: Bing [Bot], Waganama and 54 guests