shihyuho / memory-measurer

Automatically exported from code.google.com/p/memory-measurer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ObjectExplorer

Fork from DimitrisAndreou/memory-measurer

  1. Rewrite it by using pure Java 8 API instead of Google Guava
  2. Convert it to maven project

How to use

long memory = MemoryMeasurer.measureBytes(new HashMap());

or

Footprint footprint = ObjectGraphMeasurer.measure(new HashMap());

Quick tip

  • 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

About

Automatically exported from code.google.com/p/memory-measurer

License:Apache License 2.0


Languages

Language:Java 100.0%