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

[Feature Request] Allow resetting xMinimumEverFreeBytesRemaining #1188

Closed
TomasGalbickaNXP opened this issue Nov 11, 2024 · 1 comment
Closed
Labels
enhancement New feature or request

Comments

@TomasGalbickaNXP
Copy link
Contributor

Is your feature request related to a problem? Please describe.
An application running on FreeRTOS may want to get heap statistics during a particular period of time.
Therefore exposing the ability to reset the xMinimumEverFreeBytesRemaining value could be required.
For example, such use case could be required in a application that support FreeRTOS as OS and the software diagnostic cluster "reset watermarks" command.

Describe the solution you'd like
Add new heap API function xPortResetHeapMinimumEverFreeHeapSize() to heap_4.c.
It will reset xMinimumEverFreeBytesRemaining as xMinimumEverFreeBytesRemaining = xFreeBytesRemaining;.

Describe alternatives you've considered
No alternatives found, only way to reset this variable is from inside of the compilation unit.

How many devices will this feature impact?
None, It is new API heap function.

What are your project timelines?
N/A

Additional context
N/A

If you have the same (or similar) feature request, please upvote this issue with thumbs up 👍
and use the comments section to provide answers to the questions above.

@TomasGalbickaNXP
Copy link
Contributor Author

PR implementing this feature: #1189

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

No branches or pull requests

2 participants