Enum 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 enum google.devtools.cloudprofiler.v2.ProfileType
    • 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 name
        NullPointerException - if the argument is null
      • getNumber

        public final int getNumber()
        Specified by:
        getNumber in interface com.google.protobuf.Internal.EnumLite
        Specified by:
        getNumber in interface com.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 name
        NullPointerException - 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:
        getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
      • getDescriptorForType

        public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.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 name
        NullPointerException - if the argument is null