2020-07-02 21:38:52 +02:00
|
|
|
#pragma once
|
2022-01-27 23:10:59 +01:00
|
|
|
#include <FreeRTOS.h> // declares configUSE_TRACE_FACILITY
|
2020-07-02 21:38:52 +02:00
|
|
|
#include <task.h>
|
|
|
|
|
|
|
|
namespace Pinetime {
|
|
|
|
namespace System {
|
2022-01-27 23:10:59 +01:00
|
|
|
class SystemMonitor {
|
2021-04-24 11:00:45 +02:00
|
|
|
public:
|
2022-01-27 23:10:59 +01:00
|
|
|
void Process();
|
|
|
|
#if configUSE_TRACE_FACILITY == 1
|
2021-04-24 11:00:45 +02:00
|
|
|
private:
|
2021-04-18 19:28:14 +02:00
|
|
|
mutable TickType_t lastTick = 0;
|
2022-01-27 23:10:59 +01:00
|
|
|
#endif
|
2020-07-02 21:38:52 +02:00
|
|
|
};
|
|
|
|
}
|
2022-01-27 23:10:59 +01:00
|
|
|
}
|