zephyr/subsys/stats/Kconfig
Henrik Brix Andersen b219b5cba7 stats: shell: enable the stats shell if both stats and shell are enabled
Enable the statistics subsystem shell by default if both statistics and
shell are enabled.

Have the statistics shell imply enabling named statistics as this takes out
a lot of guesswork regarding which statistics counter is which.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2022-10-12 06:46:34 +02:00

31 lines
966 B
Plaintext

# Copyright (c) 2020 Intel Corp.
# SPDX-License-Identifier: Apache-2.0
config STATS
bool "Statistics support"
help
Enable per-module event counters for troubleshooting, maintenance,
and usage monitoring. Statistics can be retrieved with the mcumgr
management subsystem.
config STATS_NAMES
bool "Statistic names"
depends on STATS
help
Include a full name string for each statistic in the build. If this
setting is disabled, statistics are assigned generic names of the
form "s0", "s1", etc. Enabling this setting simplifies debugging,
but results in a larger code size.
config STATS_SHELL
bool "Statistics Shell Command"
default y
depends on STATS && SHELL
imply STATS_NAMES
help
Include a full name string for each statistic in the build. If this
setting is disabled, statistics are assigned generic names of the
form "s0", "s1", etc. Enabling this setting simplifies debugging,
but results in a larger code size.