I'm currently developing own pet project in Java which consist of custom data structures. To measure performance I chose Google Caliper framework, but to measure memory usage of data structure I should each time measure it using VisuamVm (dump heap and wait for calculation of object retained size), to get valid results. I want to make some kind of "memory benchmark" tests.
So, the question is:
Is there any Java framework similar to Caliper or JunitBenchmarks that allows to make tests to measure memory consumption of my data structures?