|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ehcache.sizeof.SizeOf
org.ehcache.sizeof.impl.ReflectionSizeOf
public class ReflectionSizeOf
SizeOf that uses reflection to measure on heap size of object graphs Inspired by Dr. Heinz Kabutz's Java Specialist Newsletter Issue #78
| Constructor Summary | |
|---|---|
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 |
|
| Method Summary | |
|---|---|
long |
sizeOf(Object obj)
Calculates the size in memory (heap) of the instance passed in, not navigating the down graph |
| Methods inherited from class org.ehcache.sizeof.SizeOf |
|---|
deepSizeOf, deepSizeOf, newInstance, newInstance |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReflectionSizeOf()
ReflectionSizeOf(SizeOfFilter, boolean, boolean)public ReflectionSizeOf(SizeOfFilter fieldFilter)
fieldFilter - The filter to applyReflectionSizeOf(SizeOfFilter, boolean, boolean),
SizeOfFilter
public ReflectionSizeOf(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 long sizeOf(Object obj)
sizeOf in class SizeOfobj - the object to measure the size of
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||