Skip to content

Commit

Permalink
[nrfconnect] Improve CHIP_MEMORY_PROFILING config (#32827)
Browse files Browse the repository at this point in the history
- Enabled the full SHELL option when memory profiling is enabled.
  • Loading branch information
ArekBalysNordic authored Apr 3, 2024
1 parent 15a7070 commit a7839b0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
6 changes: 3 additions & 3 deletions config/nrfconnect/chip-module/Kconfig.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -452,10 +452,10 @@ config SHELL_STACK_SIZE
default 2616 if CHIP_WIFI

config SHELL_MINIMAL
default y
default y if !CHIP_MEMORY_PROFILING

config KERNEL_SHELL
default n
default n if !CHIP_MEMORY_PROFILING

config SENSOR_SHELL
default n
Expand All @@ -482,7 +482,7 @@ config HWINFO_SHELL
default n

config OPENTHREAD_SHELL
default n
default n if !CHIP_MEMORY_PROFILING

endif # SHELL

Expand Down
9 changes: 7 additions & 2 deletions config/nrfconnect/chip-module/Kconfig.features
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,20 @@ endif # CHIP_SPI_NOR

config CHIP_MEMORY_PROFILING
bool "Enable features for tracking memory usage"
# Matter stack
select CHIP_STATISTICS
# Heap
select CHIP_MALLOC_SYS_HEAP_WATERMARKS_SUPPORT if CHIP_MALLOC_SYS_HEAP
select SYS_HEAP_RUNTIME_STATS if CHIP_MALLOC_SYS_HEAP
# Crypto
select MBEDTLS_MEMORY_DEBUG if !CHIP_CRYPTO_PSA
select SYS_HEAP_RUNTIME_STATS if CHIP_MALLOC_SYS_HEAP
select KERNEL_SHELL
# Network
select NET_STATISTICS
select NET_SHELL
select NET_BUF_POOL_USAGE
select OPENTHREAD_SHELL if !CHIP_WIFI
# Zephyr
select KERNEL_SHELL
help
Enables features for tracking memory usage in Matter.

Expand Down

0 comments on commit a7839b0

Please sign in to comment.