public enum MemoryAccountingType extends java.lang.Enum<MemoryAccountingType>
| Enum Constant and Description |
|---|
CONSTRUCTION
Instrumented objects only excluding unallocation.
|
CONSTRUCTION_ARRAYS
Instrumented objects with array creations excluding unallocation.
|
CONSTRUCTION_NATIVEUNALLOCATION
Instrumented objects only including native unallocation.
|
CONSTRUCTION_NATIVEUNALLOCATION_ARRAYS
Instrumented objects with array creations including native unallocation.
|
CONSTRUCTION_UNALLOCATION
Instrumented objects only including unallocation.
|
CREATION
Based on object creations excluding unallocation.
|
CREATION_ARRAYS
Based on object creations with array creations excluding unallocation.
|
CREATION_NATIVEUNALLOCATION
Based on object creations including native unallocation.
|
CREATION_NATIVEUNALLOCATION_ARRAYS
Based on object creations with array creations including native
unallocation.
|
CREATION_UNALLOCATION
Based on object creations including unallocation.
|
CREATION_UNALLOCATION_ARRAYS
Based on object creations with array creations including unallocation.
|
NONE
No memory accounting.
|
| Modifier and Type | Field and Description |
|---|---|
private int |
flags
Stores the flags.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
atArrayCreation()
Returns whether instrumentation should happen at array creations.
|
boolean |
atConstructor()
Returns whether instrumentation should happen in object constructors.
|
boolean |
atFinalizer()
Returns whether instrumentation should happen in object finalizers.
|
boolean |
atObjectCreation()
Returns whether instrumentation should happen at object creations.
|
boolean |
considerUnallocation()
Returns whether unallocation should be accounted at all.
|
boolean |
nativeUnallocation()
Returns whether unallocation should happen in native code.
|
static MemoryAccountingType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MemoryAccountingType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MemoryAccountingType NONE
public static final MemoryAccountingType CONSTRUCTION_UNALLOCATION
public static final MemoryAccountingType CONSTRUCTION_NATIVEUNALLOCATION
public static final MemoryAccountingType CONSTRUCTION
public static final MemoryAccountingType CONSTRUCTION_NATIVEUNALLOCATION_ARRAYS
public static final MemoryAccountingType CONSTRUCTION_ARRAYS
public static final MemoryAccountingType CREATION_UNALLOCATION
public static final MemoryAccountingType CREATION_NATIVEUNALLOCATION
public static final MemoryAccountingType CREATION
public static final MemoryAccountingType CREATION_UNALLOCATION_ARRAYS
public static final MemoryAccountingType CREATION_NATIVEUNALLOCATION_ARRAYS
public static final MemoryAccountingType CREATION_ARRAYS
public static MemoryAccountingType[] values()
for (MemoryAccountingType c : MemoryAccountingType.values()) System.out.println(c);
public static MemoryAccountingType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic boolean atConstructor()
true if instrumentation should in object
constructors, false elsepublic boolean atFinalizer()
true if instrumentation should happen in finalizers,
false elsepublic boolean atArrayCreation()
true if instrumentation should happen at array
creations, false elsepublic boolean atObjectCreation()
true if instrumentation should happen at object
creations, false elsepublic boolean nativeUnallocation()
true if unallocation should happen in native code,
false elsepublic boolean considerUnallocation()
true if unallocation should be accounted,
false else