Add heap note support#13847
Merged
Merged
Conversation
acassis
approved these changes
Oct 6, 2024
Contributor
|
@XuNeo please update the Documentation/ and include this image |
acassis
approved these changes
Oct 6, 2024
1a43e9d to
100afc1
Compare
Signed-off-by: lijianjun <lijianjun@xiaomi.com> Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
Record all memory allocation and release, save to ram, used to analyze memory allocation rate and memory usage Its absolute value is not trustworthy because the memory will be allocated in thread A and released in thread B netinit-5 [0] 0.105984392: tracing_mark_write: C|5|Heap Usage|96|free: heap: 0x606000000020 size:24, address: 0x603000000370 netinit-5 [0] 0.105996874: tracing_mark_write: C|5|Heap Usage|24|free: heap: 0x606000000020 size:72, address: 0x6070000008e0 nsh_main-4 [0] 3.825169408: tracing_mark_write: C|4|Heap Usage|2177665|free: heap: 0x606000000020 size:424, address: 0x614000000840 nsh_main-4 [0] 3.825228525: tracing_mark_write: C|4|Heap Usage|14977|free: heap: 0x606000000020 size:2162688, address: 0x7f80a639f800 nsh_main-4 [0] 3.825298789: tracing_mark_write: C|4|Heap Usage|15189|malloc: heap: 0x606000000020 size:20, address: 0x6030000003a0 Signed-off-by: yinshengkai <yinshengkai@xiaomi.com> Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com> Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
1. Add NOTE_HEAP_ prefix for heap note event. 2. Use note type as heap instrumentation parameter. Signed-off-by: xuxingliang <xuxingliang@xiaomi.com> Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
Signed-off-by: xuxingliang <xuxingliang@xiaomi.com> Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
Signed-off-by: xuxingliang <xuxingliang@xiaomi.com> Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
Signed-off-by: xuxingliang <xuxingliang@xiaomi.com> Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
From V3.5.6 on, data plot is supported. Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
Add heap current used to note. Plot it in segger sysview data plot. Signed-off-by: xuxingliang <xuxingliang@xiaomi.com> Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
xiaoxiang781216
approved these changes
Oct 7, 2024
simbit18
added a commit
to simbit18/nuttx
that referenced
this pull request
Jun 25, 2025
Segger SysView has been upgraded to version V3.5.6 apache#13847 Signed-off-by: simbit18 <simbit18@gmail.com>
xiaoxiang781216
pushed a commit
that referenced
this pull request
Jun 25, 2025
Segger SysView has been upgraded to version V3.5.6 #13847 Signed-off-by: simbit18 <simbit18@gmail.com>
jerpelea
pushed a commit
to jerpelea/nuttx
that referenced
this pull request
Jun 27, 2025
Segger SysView has been upgraded to version V3.5.6 apache#13847 Signed-off-by: simbit18 <simbit18@gmail.com>
xiaoxiang781216
pushed a commit
that referenced
this pull request
Jun 27, 2025
Segger SysView has been upgraded to version V3.5.6 #13847 Signed-off-by: simbit18 <simbit18@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This patch series introduces support for retrieving note information related to heap operations, such as region add/remove and malloc/free activities. Additionally, Segger SysView has been upgraded to version V3.5.6, which now includes the Data Plot feature. This new feature enables real-time visualization of heap memory usage.
Impact
New feature added. Should have no impact on existing projects.
Testing
This PR is tested with configuration
tools/configure.sh stm32f429i-disco:systemview