Skip to the content.

MycilaTaskMonitor

License: MIT Continuous Integration PlatformIO Registry

Arduino / ESP32 library to monitor task priority and stack high watermark

This helps monitor stack sizes and correctly set the stack size of each task.

Usage

void setup() {
  Mycila::TaskMonitor.begin(5);
  Mycila::TaskMonitor.addTask("loopTask");
  Mycila::TaskMonitor.addTask("async_tcp");
  Mycila::TaskMonitor.addTask("mqttclient");
  Mycila::TaskMonitor.addTask("jsyTask");
  Mycila::TaskMonitor.addTask("ioTask");
}

void loop() {
  Mycila::TaskMonitor.loop();
  delay(1000);
}

outputs:

D       588202 loopTask   (1) MONITOR    loopTask   (p=1) 260 bytes
D       588207 loopTask   (1) MONITOR    async_tcp  (p=3) 496 bytes
D       588208 loopTask   (1) MONITOR    mqttclient (p=1) 544 bytes
D       588221 loopTask   (1) MONITOR    jsyTask    (p=1) 296 bytes
D       588222 loopTask   (1) MONITOR    ioTask     (p=1) 464 bytes