Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 1.09 KB

cpu_meas.rst

File metadata and controls

35 lines (24 loc) · 1.09 KB

CPU measurement module

Use the CPU measurement module to monitor CPU load.

To enable this module, use the :ref:`CONFIG_DESKTOP_CPU_MEAS_ENABLE <config_desktop_app_options>` Kconfig option. This option selects the :kconfig:option:`CONFIG_NRF_CPU_LOAD` option, which enables the :ref:`cpu_load` library that is used to perform the measurements.

Set the time between subsequent CPU load measurements, in milliseconds, using the :ref:`CONFIG_DESKTOP_CPU_MEAS_PERIOD <config_desktop_app_options>` option.

The module periodically submits the measured CPU load as a :c:struct:`cpu_load_event` and resets the measurement. The event can be displayed in the logs or using the :ref:`nrf_profiler`. The :c:member:`cpu_load_event.load` presents the CPU load in 0.001% units.