Skip to content

Commit 8d61b36

Browse files
pdgendthenrikbrixandersen
authored andcommitted
doc: develop: optimizations: tools: Add ram_plot/rom_plot targets
Add information about the ram_plot and rom_plot build targets to generate memory usage reports using sunburst charts. Signed-off-by: Pieter De Gendt <[email protected]>
1 parent aea45b9 commit 8d61b36

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed
41.2 KB
Loading
60.5 KB
Loading

doc/develop/optimizations/tools.rst

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,40 @@ These commands will generate something similar to the output below::
157157
========================================================================================
158158
21652
159159

160+
161+
Build Targets: ram_plot/rom_plot
162+
================================
163+
164+
Similar to the ``ram_report`` and ``rom_report`` build targets, these targets generate memory usage
165+
reports in a sunburst chart as a visual representation.
166+
A user can click on segments to navigate through the directory structures, and hover over segments
167+
to get more details.
168+
169+
Running the targets will first generate the CLI report and then open a browser window.
170+
171+
.. zephyr-app-commands::
172+
:tool: all
173+
:zephyr-app: samples/hello_world
174+
:board: reel_board
175+
:goals: ram_plot
176+
177+
.. image:: ram_plot.png
178+
:align: center
179+
:alt: RAM usage sunburst chart
180+
181+
And similarly for the ROM usage.
182+
183+
.. zephyr-app-commands::
184+
:tool: all
185+
:zephyr-app: samples/hello_world
186+
:board: reel_board
187+
:goals: rom_plot
188+
189+
.. image:: rom_plot.png
190+
:align: center
191+
:alt: ROM usage sunburst chart
192+
193+
160194
Build Target: puncover
161195
======================
162196

0 commit comments

Comments
 (0)