Enum ProfileType
- java.lang.Object
-
- java.lang.Enum<ProfileType>
-
- com.google.devtools.cloudprofiler.v2.ProfileType
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<ProfileType>
public enum ProfileType extends Enum<ProfileType> implements com.google.protobuf.ProtocolMessageEnum
ProfileType is type of profiling data. NOTE: the enumeration member names are used (in lowercase) as unique string identifiers of profile types, so they must not be renamed.
Protobuf enumgoogle.devtools.cloudprofiler.v2.ProfileType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONTENTIONSynchronization contention profile.CPUThread CPU time sampling.HEAPIn-use heap profile.HEAP_ALLOCHeap allocation profile.PEAK_HEAPPeak heap profile.PROFILE_TYPE_UNSPECIFIEDUnspecified profile type.THREADSSingle-shot collection of all thread stacks.UNRECOGNIZEDWALLWallclock time sampling.
-
Field Summary
Fields Modifier and Type Field Description static intCONTENTION_VALUESynchronization contention profile.static intCPU_VALUEThread CPU time sampling.static intHEAP_ALLOC_VALUEHeap allocation profile.static intHEAP_VALUEIn-use heap profile.static intPEAK_HEAP_VALUEPeak heap profile.static intPROFILE_TYPE_UNSPECIFIED_VALUEUnspecified profile type.static intTHREADS_VALUESingle-shot collection of all thread stacks.static intWALL_VALUEWallclock time sampling.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ProfileTypeforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<ProfileType>internalGetValueMap()static ProfileTypevalueOf(int value)Deprecated.static ProfileTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static ProfileTypevalueOf(String name)Returns the enum constant of this type with the specified name.static ProfileType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PROFILE_TYPE_UNSPECIFIED
public static final ProfileType PROFILE_TYPE_UNSPECIFIED
Unspecified profile type.
PROFILE_TYPE_UNSPECIFIED = 0;
-
CPU
public static final ProfileType CPU
Thread CPU time sampling.
CPU = 1;
-
WALL
public static final ProfileType WALL
Wallclock time sampling. More expensive as stops all threads.
WALL = 2;
-
HEAP
public static final ProfileType HEAP
In-use heap profile. Represents a snapshot of the allocations that are live at the time of the profiling.
HEAP = 3;
-
THREADS
public static final ProfileType THREADS
Single-shot collection of all thread stacks.
THREADS = 4;
-
CONTENTION
public static final ProfileType CONTENTION
Synchronization contention profile.
CONTENTION = 5;
-
PEAK_HEAP
public static final ProfileType PEAK_HEAP
Peak heap profile.
PEAK_HEAP = 6;
-
HEAP_ALLOC
public static final ProfileType HEAP_ALLOC
Heap allocation profile. It represents the aggregation of all allocations made over the duration of the profile. All allocations are included, including those that might have been freed by the end of the profiling interval. The profile is in particular useful for garbage collecting languages to understand which parts of the code create most of the garbage collection pressure to see if those can be optimized.
HEAP_ALLOC = 7;
-
UNRECOGNIZED
public static final ProfileType UNRECOGNIZED
-
-
Field Detail
-
PROFILE_TYPE_UNSPECIFIED_VALUE
public static final int PROFILE_TYPE_UNSPECIFIED_VALUE
Unspecified profile type.
PROFILE_TYPE_UNSPECIFIED = 0;- See Also:
- Constant Field Values
-
CPU_VALUE
public static final int CPU_VALUE
Thread CPU time sampling.
CPU = 1;- See Also:
- Constant Field Values
-
WALL_VALUE
public static final int WALL_VALUE
Wallclock time sampling. More expensive as stops all threads.
WALL = 2;- See Also:
- Constant Field Values
-
HEAP_VALUE
public static final int HEAP_VALUE
In-use heap profile. Represents a snapshot of the allocations that are live at the time of the profiling.
HEAP = 3;- See Also:
- Constant Field Values
-
THREADS_VALUE
public static final int THREADS_VALUE
Single-shot collection of all thread stacks.
THREADS = 4;- See Also:
- Constant Field Values
-
CONTENTION_VALUE
public static final int CONTENTION_VALUE
Synchronization contention profile.
CONTENTION = 5;- See Also:
- Constant Field Values
-
PEAK_HEAP_VALUE
public static final int PEAK_HEAP_VALUE
Peak heap profile.
PEAK_HEAP = 6;- See Also:
- Constant Field Values
-
HEAP_ALLOC_VALUE
public static final int HEAP_ALLOC_VALUE
Heap allocation profile. It represents the aggregation of all allocations made over the duration of the profile. All allocations are included, including those that might have been freed by the end of the profiling interval. The profile is in particular useful for garbage collecting languages to understand which parts of the code create most of the garbage collection pressure to see if those can be optimized.
HEAP_ALLOC = 7;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static ProfileType[] 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 (ProfileType c : ProfileType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ProfileType 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
-
getNumber
public final int getNumber()
- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static ProfileType valueOf(int value)
Deprecated.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:
value- 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
-
forNumber
public static ProfileType forNumber(int value)
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<ProfileType> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static ProfileType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
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:
desc- 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
-
-