sun.misc.Unsafe#theUnsafe based sizeOf measurement
All constructors will throw UnsupportedOperationException if theUnsafe isn't accessible on this platform
| Modifier and Type | Field and Description |
|---|---|
| private static final Logger | |
| private static final Unsafe |
| Access | Constructor and Description |
|---|---|
| public | |
| public | UnsafeSizeOf(SizeOfFilter
The filter to apply filter)Builds a new SizeOf that will filter fields according to the provided filter and will cache reflected fields |
| public | UnsafeSizeOf(SizeOfFilter
The filter to apply filter, boolean whether to cache reflected fields caching)Builds a new SizeOf that will filter fields according to the provided filter |
| Modifier and Type | Method and Description |
|---|---|
| public long | sizeOf(Object
the object to measure the size of obj)Implements abstract net. |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| UNSAFE | back to summary |
|---|---|
| private static final Unsafe UNSAFE | |
| UnsafeSizeOf | back to summary |
|---|---|
| public UnsafeSizeOf() throws UnsupportedOperationException Builds a new SizeOf that will not filter fields and will cache reflected fields
| |
| UnsafeSizeOf | back to summary |
|---|---|
| public UnsafeSizeOf(SizeOfFilter filter) throws UnsupportedOperationException Builds a new SizeOf that will filter fields according to the provided filter and will cache reflected fields
| |
| UnsafeSizeOf | back to summary |
|---|---|
| public UnsafeSizeOf(SizeOfFilter filter, boolean caching) throws UnsupportedOperationException Builds a new SizeOf that will filter fields according to the provided filter
| |
| sizeOf | back to summary |
|---|---|
| public long sizeOf(Object obj) Implements abstract net. Doc from net. Calculates the size in memory (heap) of the instance passed in, not navigating the down graph | |