public class InstrumentationAgent
extends java.lang.Object
Constructor and Description |
---|
InstrumentationAgent() |
Modifier and Type | Method and Description |
---|---|
static long |
deepSize(java.lang.Object object)
Return an approximation of the memory consumed by the entire object graph
rooted at the object to estimate.
|
static boolean |
isInitialized()
Used to check if the agent has been initialized or not.
|
static void |
premain(java.lang.String agentArgs,
java.lang.instrument.Instrumentation instr) |
static long |
shallowSize(java.lang.Object object)
Returns an approximation of the amount of memory consumed by the specified object.
|
public static void premain(java.lang.String agentArgs, java.lang.instrument.Instrumentation instr)
public static final boolean isInitialized()
public static final long shallowSize(java.lang.Object object)
object
- the object to sizepublic static final long deepSize(java.lang.Object object)
object
- The root object