Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Implement the utop module #822

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
dpgeorge merged 3 commits into micropython:master from DvdGiessen:utop_esp32
May 16, 2025
Merged

Conversation

@DvdGiessen
Copy link
Contributor

@DvdGiessen DvdGiessen commented Mar 7, 2024
edited
Loading

Implements a new module, utop, as suggested in micropython/micropython#12732 (comment).

Currently only works on the esp32 port, and requires micropython/micropython#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. For example it includes an optional argument for renaming threads, useful to distinguish multiple mp_thread instances.

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.

Tangerino reacted with thumbs up emoji mattytrentini reacted with rocket emoji
Copy link
Member

@dpgeorge dpgeorge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry this took ages to get to. It looks good! I like how you've made it generic, for any target. That's a good idea, so it can be expanded in the future.

@DvdGiessen DvdGiessen force-pushed the utop_esp32 branch 2 times, most recently from 205145c to 5a1122f Compare May 14, 2025 09:09
@DvdGiessen DvdGiessen force-pushed the utop_esp32 branch 2 times, most recently from 6297148 to 068d28d Compare May 14, 2025 13:45
DvdGiessen added 3 commits May 15, 2025 17:38
Signed-off-by: Daniël van de Giessen <daniel@dvdgiessen.nl>
Signed-off-by: Daniël van de Giessen <daniel@dvdgiessen.nl>
Signed-off-by: Daniël van de Giessen <daniel@dvdgiessen.nl>
@dpgeorge dpgeorge merged commit 54d5f7c into micropython:master May 16, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@dpgeorge dpgeorge dpgeorge approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /