This is the documentation for the latest (main) development branch of Zephyr. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

CONFIG_STACK_USAGE

Generate stack usage information

Type: bool

Help

Generate an extra file that specifies the maximum amount of stack used,
on a per-function basis.

Defaults

No defaults. Implicitly defaults to n.

Kconfig definition

At subsys/debug/Kconfig:133

Included via Kconfig:8Kconfig.zephyr:44subsys/Kconfig:17

Menu path: (Top) → Sub Systems and OS Services → Debugging Options

config STACK_USAGE
    bool "Generate stack usage information"
    help
      Generate an extra file that specifies the maximum amount of stack used,
      on a per-function basis.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)