idf_performance.h 987 B

1234567891011121314151617181920
  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 800
  10. #define IDF_PERFORMANCE_MAX_FREERTOS_SPINLOCK_CYCLES_PER_OP 200
  11. #define IDF_PERFORMANCE_MAX_FREERTOS_SPINLOCK_CYCLES_PER_OP_PSRAM 270
  12. #define IDF_PERFORMANCE_MAX_FREERTOS_SPINLOCK_CYCLES_PER_OP_UNICORE 130
  13. #define IDF_PERFORMANCE_MAX_ESP_TIMER_GET_TIME_PER_CALL 1000
  14. #define IDF_PERFORMANCE_MAX_SPI_PER_TRANS_NO_POLLING 30
  15. #define IDF_PERFORMANCE_MAX_SPI_PER_TRANS_NO_POLLING_NO_DMA 27