I have a requirement to read the memory occupied by an object based on some events. Is there's a simple method that I can use from the standard library ? I need to access the memory usage of the following object which contains nested structs.
HashMap<String, HashMap<AppIdentifier, HashMap<String, u64>>>