Skip to content

Commit f91ffce

Browse files
[nrf fromlist][nrfconnect] Improve CHIP_MEMORY_PROFILING config
- Enabled the full SHELL option when memory profiling is enabled.
1 parent 70be330 commit f91ffce

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

config/nrfconnect/chip-module/Kconfig.defaults

+1-1
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ config SHELL_STACK_SIZE
465465
default 2616 if CHIP_WIFI
466466

467467
config SHELL_MINIMAL
468-
default y
468+
default y if !CHIP_MEMORY_PROFILING
469469

470470
config KERNEL_SHELL
471471
default n

config/nrfconnect/chip-module/Kconfig.features

+7-2
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,20 @@ endif # CHIP_SPI_NOR
7575

7676
config CHIP_MEMORY_PROFILING
7777
bool "Enable features for tracking memory usage"
78+
# Matter stack
7879
select CHIP_STATISTICS
80+
# Heap
7981
select CHIP_MALLOC_SYS_HEAP_WATERMARKS_SUPPORT if CHIP_MALLOC_SYS_HEAP
82+
select SYS_HEAP_RUNTIME_STATS if CHIP_MALLOC_SYS_HEAP
83+
# Crypto
8084
select MBEDTLS_MEMORY_DEBUG if !CHIP_CRYPTO_PSA
81-
select SYS_HEAP_RUNTIME_STATS if CHIP_MALLOC_SYS_HEAP
82-
select KERNEL_SHELL
85+
# Network
8386
select NET_STATISTICS
8487
select NET_SHELL
8588
select NET_BUF_POOL_USAGE
8689
select OPENTHREAD_SHELL if !CHIP_WIFI
90+
# Zephyr
91+
select KERNEL_SHELL
8792
help
8893
Enables features for tracking memory usage in Matter.
8994

0 commit comments

Comments
 (0)