public enum SizeInfoMethod extends Enum<SizeInfoMethod>
Enum Constant and Description |
---|
CALCULATED
Use calculation heuristics.
|
JAVAAGENT
Use
sizeinfo-agent based Instrumentation . |
Modifier and Type | Field and Description |
---|---|
static int |
MAX_TRAVERSAL_DEPTH
Max traversal depth used when skipping visited reference check.
|
Modifier and Type | Method and Description |
---|---|
abstract Function<Object,Long> |
newCalculator(boolean visitOnce)
Create a new calculator method.
|
static SizeInfoMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SizeInfoMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SizeInfoMethod CALCULATED
public static final SizeInfoMethod JAVAAGENT
sizeinfo-agent
based Instrumentation
.
For this method start the JVM with option -javaagent:sizeinfo-agent-<VERSION>.jar
.public static final int MAX_TRAVERSAL_DEPTH
public static SizeInfoMethod[] values()
for (SizeInfoMethod c : SizeInfoMethod.values()) System.out.println(c);
public static SizeInfoMethod valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null