Enum gapi_grpc::google::devtools::cloudprofiler::v2::ProfileType[][src]

#[repr(i32)]pub enum ProfileType {
    Unspecified,
    Cpu,
    Wall,
    Heap,
    Threads,
    Contention,
    PeakHeap,
    HeapAlloc,
}

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.

Variants

Unspecified

Unspecified profile type.

Cpu

Thread CPU time sampling.

Wall

Wallclock time sampling. More expensive as stops all threads.

Heap

In-use heap profile. Represents a snapshot of the allocations that are live at the time of the profiling.

Threads

Single-shot collection of all thread stacks.

Contention

Synchronization contention profile.

PeakHeap

Peak heap profile.

HeapAlloc

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.

Implementations

impl ProfileType[src]

pub fn is_valid(value: i32) -> bool[src]

Returns true if value is a variant of ProfileType.

pub fn from_i32(value: i32) -> Option<ProfileType>[src]

Converts an i32 to a ProfileType, or None if value is not a valid variant.

Trait Implementations

impl Clone for ProfileType[src]

impl Copy for ProfileType[src]

impl Debug for ProfileType[src]

impl Default for ProfileType[src]

impl Eq for ProfileType[src]

impl From<ProfileType> for i32[src]

impl Hash for ProfileType[src]

impl Ord for ProfileType[src]

impl PartialEq<ProfileType> for ProfileType[src]

impl PartialOrd<ProfileType> for ProfileType[src]

impl StructuralEq for ProfileType[src]

impl StructuralPartialEq for ProfileType[src]

Auto Trait Implementations

impl RefUnwindSafe for ProfileType

impl Send for ProfileType

impl Sync for ProfileType

impl Unpin for ProfileType

impl UnwindSafe for ProfileType

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]