org.apache.wicket.util.instrument
Class InstrumentationObjectSizeOfStrategy

java.lang.Object
  extended by org.apache.wicket.util.instrument.InstrumentationObjectSizeOfStrategy
All Implemented Interfaces:
Objects.IObjectSizeOfStrategy

public class InstrumentationObjectSizeOfStrategy
extends java.lang.Object
implements Objects.IObjectSizeOfStrategy

Object size of strategy that is based on instrumentation.

Author:
eelcohillenius

Constructor Summary
InstrumentationObjectSizeOfStrategy(java.lang.instrument.Instrumentation instrumentation)
          Construct.
 
Method Summary
 long sizeOf(java.lang.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
 

Constructor Detail

InstrumentationObjectSizeOfStrategy

public InstrumentationObjectSizeOfStrategy(java.lang.instrument.Instrumentation instrumentation)
Construct.

Parameters:
instrumentation -
Method Detail

sizeOf

public long sizeOf(java.lang.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-2010 Apache Software Foundation. All Rights Reserved.