system_info.h 508 B

123456789101112131415161718192021
  1. #ifndef _SYSTEM_INFO_H_
  2. #define _SYSTEM_INFO_H_
  3. #include <string>
  4. #include <esp_err.h>
  5. #include <freertos/FreeRTOS.h>
  6. class SystemInfo {
  7. public:
  8. static size_t GetFlashSize();
  9. static size_t GetMinimumFreeHeapSize();
  10. static size_t GetFreeHeapSize();
  11. static std::string GetMacAddress();
  12. static std::string GetChipModelName();
  13. static esp_err_t PrintTaskCpuUsage(TickType_t xTicksToWait);
  14. static void PrintTaskList();
  15. static void PrintHeapStats();
  16. };
  17. #endif // _SYSTEM_INFO_H_