You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your enhancement proposal related to a problem? Please describe.
To request heap statistics, a pointer to a heap structure is required. This is straightforward for a user-defined heap. However, such a pointer is not known for heaps created by other components or libraries, like libc. Therefore, it is not possible to calculate the total heap allocated memory.
Describe the solution you'd like
A possible solution is to use an array of pointers, which is filled in on every sys_heap_init() call. One can then iterate through it to sum up the total memory allocated for all heaps.
Describe alternatives you've considered
A list of pointers instead of an array could be another approach, but it requires a heap, which is not always available.
The text was updated successfully, but these errors were encountered:
Is your enhancement proposal related to a problem? Please describe.
To request heap statistics, a pointer to a heap structure is required. This is straightforward for a user-defined heap. However, such a pointer is not known for heaps created by other components or libraries, like libc. Therefore, it is not possible to calculate the total heap allocated memory.
Describe the solution you'd like
A possible solution is to use an array of pointers, which is filled in on every sys_heap_init() call. One can then iterate through it to sum up the total memory allocated for all heaps.
Describe alternatives you've considered
A list of pointers instead of an array could be another approach, but it requires a heap, which is not always available.
The text was updated successfully, but these errors were encountered: