I need to calculate how much memory the hashmap object with all the contents occupies. How could I do that?