Skip to content

sasaxie/Java-Object-Size

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Include the JAR file in your project.

Add an agent to your JVM arguments as follows:
-javaagent:/PATH/TO/JAR/ObjectSize.jar

Call ObjectSizeUtil.getObjectSize() on your object and the size will be returned in bytes.
Call ObjectSizeUtil.getDeepObjectSize() on your object and all referenced objects will be checked as well.

About

Get an object's size at runtime

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Java 100.0%