Small profiler class for micropython.