shallowSizeOf
Returns the size in bytes of the byte[] object.
Returns the size in bytes of the boolean[] object.
Returns the size in bytes of the char[] object.
Returns the size in bytes of the short[] object.
Returns the size in bytes of the int[] object.
Returns the size in bytes of the float[] object.
Returns the size in bytes of the long[] object.
Returns the size in bytes of the double[] object.
Returns the shallow size in bytes of the Object[] object.
Estimates a "shallow" memory usage of the given object. For arrays, this will be the memory taken by array storage (no subreferences will be followed). For objects, this will be the memory taken by the fields.
JVM object alignments are also applied.