查看对象占用内存
2020-11-18 本文已影响0人
hao_yu
<dependency>
<groupId>org.openjdk.jol</groupId>
<artifactId>jol-core</artifactId>
<version>0.10</version>
</dependency>
calsslayout.parseinstance(new Test()).toprintable;
结果如图:
image.png
<dependency>
<groupId>org.openjdk.jol</groupId>
<artifactId>jol-core</artifactId>
<version>0.10</version>
</dependency>
calsslayout.parseinstance(new Test()).toprintable;
结果如图: