The ESP32 is very capable but even the most capable of devices can get overwhelmed when using it extensively, so how can we find out what is taking so long or which function should we optimize to make things even better?FreeRTOS Real Time StatsFreeRTOS has a function vTaskGetRunTimeStats which can get statistics for tasks runtime, however the API takes some performance away. So it needs to be enabled in the configuration CONFIG_FREERTOS_GENERATE_RUN_TIME_STATS.The following is an example from esp-idf examples. Getting real time stats over 100 ticks | Task | Run Time | Percentage | stats |...
Wednesday, December 28, 2022
Subscribe to:
Posts (Atom)