dm: core: Add a command to show driver model statistics
[platform/kernel/u-boot.git] / drivers / core / Kconfig
index 9b9a714..97dc699 100644 (file)
@@ -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