ESP32 performance measurements
Posted: Wed Oct 30, 2019 1:09 pm
I'd like to get some performance-related metrics for an application running on the ESP32 and I'm looking for suggestions on how to do so.
I'm interested in metrics such as:
For context, this would be used to evaluate and compare the performance of different versions of the application.
Measuring the elapsed time is probably not that difficult, since there is e.g. esp_timer_get_time(), but how about the memory usage?
I've seen this post, which gave me the idea to have a separate process which repeatedly querys the free RAM. is there a better solution? Also, ESP.getFreeHeap() seems to be Arduino-specific, is that equivalent to heap_caps_get_free_size()?
Thanks for your suggestions!
I'm interested in metrics such as:
- Memory usage over time
- Maximum memory usage
- Time to complete a task
- Maybe the cycle count to complete a task?
For context, this would be used to evaluate and compare the performance of different versions of the application.
Measuring the elapsed time is probably not that difficult, since there is e.g. esp_timer_get_time(), but how about the memory usage?
I've seen this post, which gave me the idea to have a separate process which repeatedly querys the free RAM. is there a better solution? Also, ESP.getFreeHeap() seems to be Arduino-specific, is that equivalent to heap_caps_get_free_size()?
Thanks for your suggestions!