[PATCH 10/10] WIP: dm: core: Add a command to calculate memory usage