public class UnsafeSizeOf extends SizeOf
Unsafe.theUnsafe based sizeOf measurement
All constructors will throw UnsupportedOperationException if theUnsafe isn't accessible on this platform| Constructor and Description |
|---|
UnsafeSizeOf()
Builds a new SizeOf that will not filter fields and will cache reflected fields
|
UnsafeSizeOf(SizeOfFilter filter)
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
|
| Modifier and Type | Method and Description |
|---|---|
long |
sizeOf(Object obj)
Calculates the size in memory (heap) of the instance passed in, not navigating the down graph
|
deepSizeOf, deepSizeOf, newInstance, newInstancepublic UnsafeSizeOf()
throws UnsupportedOperationException
UnsupportedOperationException - If Unsafe isn't accessibleUnsafeSizeOf(org.ehcache.sizeof.filters.SizeOfFilter, boolean, boolean)public UnsafeSizeOf(SizeOfFilter filter) throws UnsupportedOperationException
filter - The filter to applyUnsupportedOperationException - If Unsafe isn't accessibleUnsafeSizeOf(org.ehcache.sizeof.filters.SizeOfFilter, boolean, boolean),
SizeOfFilterpublic UnsafeSizeOf(SizeOfFilter filter, boolean caching, boolean bypassFlyweight) throws UnsupportedOperationException
filter - The filter to applycaching - whether to cache reflected fieldsbypassFlyweight - whether "Flyweight Objects" are to be ignoredUnsupportedOperationException - If Unsafe isn't accessibleSizeOfFilterCopyright © 2024 Terracotta. All rights reserved.