org.apache.wicket.util.instrument
Class InstrumentationObjectSizeOfStrategy
java.lang.Object
org.apache.wicket.util.instrument.InstrumentationObjectSizeOfStrategy
- All Implemented Interfaces:
- Objects.IObjectSizeOfStrategy
public class InstrumentationObjectSizeOfStrategy
- extends Object
- implements Objects.IObjectSizeOfStrategy
Object size of strategy that is based on instrumentation.
- Author:
- eelcohillenius
Method Summary |
long |
sizeOf(Object obj)
Calculates full size of object iterating over its hierarchy graph. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InstrumentationObjectSizeOfStrategy
public InstrumentationObjectSizeOfStrategy(Instrumentation instrumentation)
- Construct.
- Parameters:
instrumentation
-
sizeOf
public long sizeOf(Object obj)
- Calculates full size of object iterating over its hierarchy graph.
- Specified by:
sizeOf
in interface Objects.IObjectSizeOfStrategy
- Parameters:
obj
- object to calculate size of
- Returns:
- object size
- See Also:
Objects.IObjectSizeOfStrategy.sizeOf(java.lang.Object)
Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.