Package dalvik.system.profiler
Enum BinaryHprof.Tag
- java.lang.Object
-
- java.lang.Enum<BinaryHprof.Tag>
-
- dalvik.system.profiler.BinaryHprof.Tag
-
- All Implemented Interfaces:
Serializable,Comparable<BinaryHprof.Tag>
- Enclosing class:
- BinaryHprof
public static enum BinaryHprof.Tag extends Enum<BinaryHprof.Tag>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALLOC_SITESCONTROL_SETTINGSCPU_SAMPLESEND_THREADHEAP_DUMPHEAP_DUMP_ENDHEAP_DUMP_SEGMENTHEAP_SUMMARYLOAD_CLASSSTACK_FRAMESTACK_TRACESTART_THREADSTRING_IN_UTF8UNLOAD_CLASS
-
Field Summary
Fields Modifier and Type Field Description intmaximumSizeMaximum size in bytes. 0 mean no specific limit.intminimumSizeMinimum size in bytes.bytetag
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringcheckSize(int actual)Returns null if the actual size meets expectations, or a String error message if not.static BinaryHprof.Tagget(byte tag)static BinaryHprof.TagvalueOf(String name)Returns the enum constant of this type with the specified name.static BinaryHprof.Tag[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STRING_IN_UTF8
public static final BinaryHprof.Tag STRING_IN_UTF8
-
LOAD_CLASS
public static final BinaryHprof.Tag LOAD_CLASS
-
UNLOAD_CLASS
public static final BinaryHprof.Tag UNLOAD_CLASS
-
STACK_FRAME
public static final BinaryHprof.Tag STACK_FRAME
-
STACK_TRACE
public static final BinaryHprof.Tag STACK_TRACE
-
ALLOC_SITES
public static final BinaryHprof.Tag ALLOC_SITES
-
HEAP_SUMMARY
public static final BinaryHprof.Tag HEAP_SUMMARY
-
START_THREAD
public static final BinaryHprof.Tag START_THREAD
-
END_THREAD
public static final BinaryHprof.Tag END_THREAD
-
HEAP_DUMP
public static final BinaryHprof.Tag HEAP_DUMP
-
HEAP_DUMP_SEGMENT
public static final BinaryHprof.Tag HEAP_DUMP_SEGMENT
-
HEAP_DUMP_END
public static final BinaryHprof.Tag HEAP_DUMP_END
-
CPU_SAMPLES
public static final BinaryHprof.Tag CPU_SAMPLES
-
CONTROL_SETTINGS
public static final BinaryHprof.Tag CONTROL_SETTINGS
-
-
Method Detail
-
values
public static BinaryHprof.Tag[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BinaryHprof.Tag c : BinaryHprof.Tag.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BinaryHprof.Tag valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
get
public static BinaryHprof.Tag get(byte tag)
-
checkSize
public String checkSize(int actual)
Returns null if the actual size meets expectations, or a String error message if not.
-
-