-
Notifications
You must be signed in to change notification settings - Fork 3k
Add overhead count in heap stats #7917
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
Conversation
Resolves: #7343 |
|
7683164
to
2076168
Compare
Updated |
bc105d5
to
70feb50
Compare
bd9f02c
to
2612aba
Compare
@c1728p9 @SeppoTakalo - Please review |
|
||
typedef struct { | ||
size_t size; | ||
}mbed_heap_overhead_t; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this apply to all allocators or just one particular library? dlmalloc based?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does not apply to all allocators. But tested with dlmalloc and all three tool chains
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which from Mbed OS point of view is "all"
Thanks..
/morph build |
Build : SUCCESSBuild number : 3190 Triggering tests/morph test |
Test : SUCCESSBuild number : 2992 |
Exporter Build : SUCCESSBuild number : 2784 |
We need to restart the tests (reports success but there is a hard fault in one of the tests), will restart |
tagging with do not merge so that I don't merge it in the current "passed testing" state. @0xc0170 please remove the "do not merge" when you restart testing. |
/morph test |
Test : SUCCESSBuild number : 3011 |
hey,curious to know how hardfault was discovered? I was not able to find and to be true didn;t go through logs of each and every test. Test was restarted and says success again, but would like to cross check for the same hardfault. |
/morph test |
Test : SUCCESSBuild number : 3019 |
still looks like a hard fault in LPC546XX,ARM (although tests report a pass): logs: |
Heap statistics are used for analysing heap stats, but it doesn't tell anything about real heap usage or malloc overheads. Adding `overhead_size` element will help users to get the real heap usage.
2612aba
to
5f58828
Compare
Issue might be related to ARMmbed/DAPLink#504. Rebased and verified test locally, no error for LPC546xx Eval board with latest daplink (with above fix). The PR is merged but not released. Daplink firmware should be updated on LPC546xx devices in CI. |
/morph build |
/morph build |
Build : SUCCESSBuild number : 3236 Triggering tests/morph test |
Test : SUCCESSBuild number : 3043 |
/morph export-build |
Exporter Build : SUCCESSBuild number : 2828 |
Description
Heap statistics are used for analyzing heap stats, but it doesn't tell anything about real heap usage or malloc overheads. Adding
overhead_size
element will help users to get the real heap usage.Pull request type