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!