This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch releases/12.7 in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit f81c8051a3e3e4d2648759ac325129feb7901460 Author: Neo Xu <[email protected]> AuthorDate: Sun Oct 6 18:12:36 2024 +0800 Documentation: add segger sysview heap trace example Signed-off-by: Neo Xu <[email protected]> --- 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
