Fork from DimitrisAndreou/memory-measurer
- Rewrite it by using pure Java 8 API instead of Google Guava
- Convert it to maven project
long memory = MemoryMeasurer.measureBytes(new HashMap());
or
Footprint footprint = ObjectGraphMeasurer.measure(new HashMap());
mvn clean package
- to package jar- To use the MemoryMeasurer (to measure the footprint of an object
graph in bytes), this parameter needs to be passed to th VM:
-javaagent:path/to/object-explorer.jar