micropython-lib icon indicating copy to clipboard operation
micropython-lib copied to clipboard

Implement the utop module

Open DvdGiessen opened this issue 1 year ago • 0 comments

Implements a new module, utop, as suggested in https://github.com/micropython/micropython/pull/12732#issuecomment-1790040708.

Currently only works on the esp32 port, and requires https://github.com/micropython/micropython/pull/12732.

An animated GIF to demonstrate what the output looks like:

utop

Opted to give it a generic name instead of ESP32-specific, as there was mention of other platforms also having options to retrieve runtime performance data, which might be nice to support at a later time.

Compared to the version posted in that esp32 MR (here) this version is a few lines longer to make it a bit easier to read and expand later.

First commit implements the functionality as demo'd in the other MR. The second commit adds two lines of information about the current state of the ESP-IDF heap, as an example of how we could expand this later to be a more useful development utility.

DvdGiessen avatar Mar 07 '24 14:03 DvdGiessen