idf_performance.h 735 B

123456789101112131415
  1. /* @brief macro to print IDF performance
  2. * @param mode : performance item name. a string pointer.
  3. * @param value_fmt: print format and unit of the value, for example: "%02fms", "%dKB"
  4. * @param value : the performance value.
  5. */
  6. #define IDF_LOG_PERFORMANCE(item, value_fmt, value) \
  7. printf("[Performance][%s]: "value_fmt"\n", item, value)
  8. /* declare the performance here */
  9. #define IDF_PERFORMANCE_MAX_HTTPS_REQUEST_BIN_SIZE 610
  10. #define IDF_PERFORMANCE_MAX_FREERTOS_SPINLOCK_CYCLES_PER_OP 200
  11. #define IDF_PERFORMANCE_MAX_FREERTOS_SPINLOCK_CYCLES_PER_OP_UNICORE 130
  12. #define IDF_PERFORMANCE_MAX_ESP_TIMER_GET_TIME_PER_CALL 1000