|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ehcache.sizeof.SizeOf
public abstract class SizeOf
Abstract sizeOf for Java. It will rely on a proper sizeOf to measure sizes of entire object graphs
| Constructor Summary | |
|---|---|
SizeOf(SizeOfFilter fieldFilter,
boolean caching,
boolean bypassFlyweight)
Builds a new SizeOf that will filter fields according to the provided filter |
|
| Method Summary | |
|---|---|
long |
deepSizeOf(Object... obj)
|
long |
deepSizeOf(VisitorListener listener,
Object... obj)
Measures the size in memory (heap) of the objects passed in, walking their graph down Any overlap of the graphs being passed in will be recognized and only measured once |
static SizeOf |
newInstance(boolean bypassFlyweight,
boolean cache,
SizeOfFilter... filters)
|
static SizeOf |
newInstance(SizeOfFilter... filters)
|
abstract long |
sizeOf(Object obj)
Calculates the size in memory (heap) of the instance passed in, not navigating the down graph |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SizeOf(SizeOfFilter fieldFilter,
boolean caching,
boolean bypassFlyweight)
fieldFilter - The filter to applycaching - whether to cache reflected fieldsbypassFlyweight - whether "Flyweight Objects" are to be ignoredSizeOfFilter| Method Detail |
|---|
public abstract long sizeOf(Object obj)
obj - the object to measure the size of
public long deepSizeOf(VisitorListener listener,
Object... obj)
listener - A listener to visited objectsobj - the root objects of the graphs to measure
sizeOf(Object)public long deepSizeOf(Object... obj)
public static SizeOf newInstance(SizeOfFilter... filters)
public static SizeOf newInstance(boolean bypassFlyweight,
boolean cache,
SizeOfFilter... filters)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||