You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2024/10/07 09:35:15 UTC

(nuttx) 10/10: Documentation: add segger sysview heap trace example

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 0ba4d2c8573b0905f779d90f5b18c2da8a18fb84
Author: Neo Xu <ne...@gmail.com>
AuthorDate: Sun Oct 6 18:12:36 2024 +0800

    Documentation: add segger sysview heap trace example
    
    Signed-off-by: Neo Xu <ne...@gmail.com>
---
 Documentation/components/drivers/special/segger.rst  |  13 ++++++++++++-
 Documentation/components/drivers/special/sysview.png | Bin 0 -> 620272 bytes
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/Documentation/components/drivers/special/segger.rst b/Documentation/components/drivers/special/segger.rst
index 29097de3b8..e22a420afd 100644
--- a/Documentation/components/drivers/special/segger.rst
+++ b/Documentation/components/drivers/special/segger.rst
@@ -17,7 +17,7 @@ Supported Segger drivers:
 Segger SystemView
 =================
 
-Steps to enable SystemView support:
+1. Steps to enable SystemView support:
 
 #. Make sure your architecture supports a high-performance counter.
    In most cases it will be:
@@ -62,3 +62,14 @@ Steps to enable SystemView support:
 
    In case SystemView returns buffer overflow errors, you should increase
    ``CONFIG_NOTE_RTT_BUFFER_SIZE_UP``.
+
+2. Use SystemView for heap tracing:
+
+Refer to example configuration at ``stm32f429i-disco/configs/systemview``.
+Make sure that ``CONFIG_SCHED_INSTRUMENTATION_HEAP`` is enabled.
+
+Example of screenshot from SystemView:
+
+.. image:: sysview.png
+   :width: 800px
+   :align: center
diff --git a/Documentation/components/drivers/special/sysview.png b/Documentation/components/drivers/special/sysview.png
new file mode 100644
index 0000000000..d5f8709631
Binary files /dev/null and b/Documentation/components/drivers/special/sysview.png differ