public class ReflectionSizeOf extends SizeOf
| Constructor and Description |
|---|
ReflectionSizeOf()
Builds a new SizeOf that will not filter fields and will cache reflected fields
|
ReflectionSizeOf(SizeOfFilter fieldFilter)
Builds a new SizeOf that will filter fields and will cache reflected fields
|
ReflectionSizeOf(SizeOfFilter fieldFilter,
boolean caching,
boolean bypassFlyweight)
Builds a new SizeOf that will filter fields
|
| 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 ReflectionSizeOf()
public ReflectionSizeOf(SizeOfFilter fieldFilter)
fieldFilter - The filter to applyReflectionSizeOf(SizeOfFilter, boolean, boolean),
SizeOfFilterpublic ReflectionSizeOf(SizeOfFilter fieldFilter, boolean caching, boolean bypassFlyweight)
fieldFilter - The filter to applycaching - Whether to cache reflected fieldsbypassFlyweight - whether "Flyweight Objects" are to be ignoredSizeOfFilterCopyright © 2024 Terracotta. All rights reserved.