|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.ehcache.pool.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)
Builds a new SizeOf that will filter fields according to the provided filter |
Method Summary | |
---|---|
Size |
deepSizeOf(int maxDepth,
boolean abortWhenMaxDepthExceeded,
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 |
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)
fieldFilter
- The filter to applycaching
- whether to cache reflected fieldsSizeOfFilter
Method Detail |
---|
public abstract long sizeOf(Object obj)
obj
- the object to measure the size of
public Size deepSizeOf(int maxDepth, boolean abortWhenMaxDepthExceeded, Object... obj)
maxDepth
- maximum depth of the object graph to traverseabortWhenMaxDepthExceeded
- true if the object traversal should be aborted when the max depth is exceededobj
- the root objects of the graphs to measure
sizeOf(Object)
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |