Quantifying idle time when using uasyncio

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
User avatar
mathieu
Posts: 88
Joined: Fri Nov 10, 2017 9:57 pm

Quantifying idle time when using uasyncio

Post by mathieu » Sun Apr 10, 2022 7:12 pm

I'm working on a moderately complex automated system to read/log a dozen temperature and pressure sensors, run a few PIDs, control a stepper motor, and print out status messages. Most of these processes run in a async coroutine. I'd like to minimize undue lags, and to determine whether I need to optimize certain coroutines. What would be the best way to monitor my "idle time budget"?

Post Reply