Skip to content
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

heap usage report #2078

Open
mkiiskila opened this issue Nov 1, 2019 · 0 comments
Open

heap usage report #2078

mkiiskila opened this issue Nov 1, 2019 · 0 comments

Comments

@mkiiskila
Copy link
Contributor

We should have a console command/newtmgr operation to query heap use. I'd want minimally to see a) how much space was in the heap initially and b) how much was the max allocated amount.

Code should live next to _sbrk() implementation for the MCU, and the API could be optional to implement (presence of the implementation would be advertised with syscfg).

Optionally add a interface to baselibc which reports amount of memory in freelist. Not all use targets use baselibc (native targets, specifically), so including that data within the heap report could depend on whether baselibc is used or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant