Class UnsafeSizeOf

java.lang.Object
org.ehcache.sizeof.SizeOf
org.ehcache.sizeof.impl.UnsafeSizeOf

public class UnsafeSizeOf extends SizeOf
Unsafe.theUnsafe based sizeOf measurement All constructors will throw UnsupportedOperationException if theUnsafe isn't accessible on this platform
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final org.slf4j.Logger
     
    private static final sun.misc.Unsafe
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Builds a new SizeOf that will not filter fields and will cache reflected fields
    Builds a new SizeOf that will filter fields according to the provided filter and will cache reflected fields
    UnsafeSizeOf(SizeOfFilter filter, boolean caching, boolean bypassFlyweight)
    Builds a new SizeOf that will filter fields according to the provided filter
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Calculates the size in memory (heap) of the instance passed in, not navigating the down graph

    Methods inherited from class org.ehcache.sizeof.SizeOf

    deepSizeOf, deepSizeOf, newInstance, newInstance

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait