Skip to content

Commit a7839b0

Browse files
[nrfconnect] Improve CHIP_MEMORY_PROFILING config (#32827)
- Enabled the full SHELL option when memory profiling is enabled.
1 parent 15a7070 commit a7839b0

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

config/nrfconnect/chip-module/Kconfig.defaults

+3-3
Original file line numberDiff line numberDiff line change
@@ -452,10 +452,10 @@ config SHELL_STACK_SIZE
452452
default 2616 if CHIP_WIFI
453453

454454
config SHELL_MINIMAL
455-
default y
455+
default y if !CHIP_MEMORY_PROFILING
456456

457457
config KERNEL_SHELL
458-
default n
458+
default n if !CHIP_MEMORY_PROFILING
459459

460460
config SENSOR_SHELL
461461
default n
@@ -482,7 +482,7 @@ config HWINFO_SHELL
482482
default n
483483

484484
config OPENTHREAD_SHELL
485-
default n
485+
default n if !CHIP_MEMORY_PROFILING
486486

487487
endif # SHELL
488488

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)