ffx profile memory
is a tool to explore the RAM usage of a Fuchsia system. It works by evaluating how much commited memory is used by VMOs on the system, regardless of whether these VMOs are mapped or not (unlike ps
).
Under the hood, this tool uses the component memory_monitor
to capture information on all the VMOs of the system.
You can get the raw data exported by memory_monitor
with the option --debug-json
You can track the memory usage over time by combining the --csv
and --interval
options, for example:
ffx profile memory --csv --interval 1