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 enum
google.devtools.cloudprofiler.v2.ProfileType| Enum Constant and Description |
|---|
CONTENTION
Synchronization contention profile.
|
CPU
Thread CPU time sampling.
|
HEAP
In-use heap profile.
|
HEAP_ALLOC
Heap allocation profile.
|
PEAK_HEAP
Peak heap profile.
|
PROFILE_TYPE_UNSPECIFIED
Unspecified profile type.
|
THREADS
Single-shot collection of all thread stacks.
|
UNRECOGNIZED |
WALL
Wallclock time sampling.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
CONTENTION_VALUE
Synchronization contention profile.
|
static int |
CPU_VALUE
Thread CPU time sampling.
|
static int |
HEAP_ALLOC_VALUE
Heap allocation profile.
|
static int |
HEAP_VALUE
In-use heap profile.
|
static int |
PEAK_HEAP_VALUE
Peak heap profile.
|
static int |
PROFILE_TYPE_UNSPECIFIED_VALUE
Unspecified profile type.
|
static int |
THREADS_VALUE
Single-shot collection of all thread stacks.
|
static int |
WALL_VALUE
Wallclock time sampling.
|
| Modifier and Type | Method and Description |
|---|---|
static ProfileType |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<ProfileType> |
internalGetValueMap() |
static ProfileType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static ProfileType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static ProfileType |
valueOf(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.
|
public static final ProfileType PROFILE_TYPE_UNSPECIFIED
Unspecified profile type.
PROFILE_TYPE_UNSPECIFIED = 0;public static final ProfileType CPU
Thread CPU time sampling.
CPU = 1;public static final ProfileType WALL
Wallclock time sampling. More expensive as stops all threads.
WALL = 2;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;public static final ProfileType THREADS
Single-shot collection of all thread stacks.
THREADS = 4;public static final ProfileType CONTENTION
Synchronization contention profile.
CONTENTION = 5;public static final ProfileType PEAK_HEAP
Peak heap profile.
PEAK_HEAP = 6;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;public static final ProfileType UNRECOGNIZED
public static final int PROFILE_TYPE_UNSPECIFIED_VALUE
Unspecified profile type.
PROFILE_TYPE_UNSPECIFIED = 0;public static final int CPU_VALUE
Thread CPU time sampling.
CPU = 1;public static final int WALL_VALUE
Wallclock time sampling. More expensive as stops all threads.
WALL = 2;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;public static final int THREADS_VALUE
Single-shot collection of all thread stacks.
THREADS = 4;public static final int CONTENTION_VALUE
Synchronization contention profile.
CONTENTION = 5;public static final int PEAK_HEAP_VALUE
Peak heap profile.
PEAK_HEAP = 6;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;public static ProfileType[] values()
for (ProfileType c : ProfileType.values()) System.out.println(c);
public static ProfileType 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 nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static ProfileType valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static ProfileType forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<ProfileType> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static ProfileType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025 Google LLC. All rights reserved.