summaryrefslogtreecommitdiff
path: root/drivers/core/Kconfig
diff options
context:
space:
mode:
authorSimon Glass <[email protected]>2022-05-08 04:39:26 -0600
committerSimon Glass <[email protected]>2022-06-28 03:09:52 +0100
commit2cb4ddb91ec9fcb77c895e4a1192a15aece700c6 (patch)
treefa5b70616fb54ee575514943c453f544ed033ab3 /drivers/core/Kconfig
parent0dfda34ca594c701955cfcb71711a7599f97bae3 (diff)
dm: core: Add a command to show driver model statistics
This command shows the memory used by driver model along with various hints as to what it might be if some 'core' tags were moved to use the tag list instead of a core (i.e. always-there) pointer. This may help with future work to reduce memory usage. Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'drivers/core/Kconfig')
-rw-r--r--drivers/core/Kconfig11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/core/Kconfig b/drivers/core/Kconfig
index 9b9a7148a1a..97dc699e969 100644
--- a/drivers/core/Kconfig
+++ b/drivers/core/Kconfig
@@ -75,6 +75,17 @@ config DM_DEBUG
help
Say Y here if you want to compile in debug messages in DM core.
+config DM_STATS
+ bool "Collect and show driver model stats"
+ depends on DM
+ default y if SANDBOX
+ help
+ Enable this to collect and display memory statistics about driver
+ model. This can help to figure out where all the memory is going and
+ to find optimisations.
+
+ To display the memory stats, use the 'dm mem' command.
+
config DM_DEVICE_REMOVE
bool "Support device removal"
depends on DM