Enum google_api_proto::google::devtools::cloudprofiler::v2::ProfileType
source · #[repr(i32)]pub enum ProfileType {
Unspecified = 0,
Cpu = 1,
Wall = 2,
Heap = 3,
Threads = 4,
Contention = 5,
PeakHeap = 6,
HeapAlloc = 7,
}
Expand description
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 = 0
Unspecified profile type.
Cpu = 1
Thread CPU time sampling.
Wall = 2
Wallclock time sampling. More expensive as stops all threads.
Heap = 3
In-use heap profile. Represents a snapshot of the allocations that are live at the time of the profiling.
Threads = 4
Single-shot collection of all thread stacks.
Contention = 5
Synchronization contention profile.
PeakHeap = 6
Peak heap profile.
HeapAlloc = 7
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§
source§impl ProfileType
impl ProfileType
source§impl ProfileType
impl ProfileType
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for ProfileType
impl Clone for ProfileType
source§fn clone(&self) -> ProfileType
fn clone(&self) -> ProfileType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ProfileType
impl Debug for ProfileType
source§impl Default for ProfileType
impl Default for ProfileType
source§fn default() -> ProfileType
fn default() -> ProfileType
source§impl From<ProfileType> for i32
impl From<ProfileType> for i32
source§fn from(value: ProfileType) -> i32
fn from(value: ProfileType) -> i32
source§impl Hash for ProfileType
impl Hash for ProfileType
source§impl Ord for ProfileType
impl Ord for ProfileType
source§fn cmp(&self, other: &ProfileType) -> Ordering
fn cmp(&self, other: &ProfileType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for ProfileType
impl PartialEq for ProfileType
source§fn eq(&self, other: &ProfileType) -> bool
fn eq(&self, other: &ProfileType) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ProfileType
impl PartialOrd for ProfileType
source§fn partial_cmp(&self, other: &ProfileType) -> Option<Ordering>
fn partial_cmp(&self, other: &ProfileType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for ProfileType
impl TryFrom<i32> for ProfileType
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<ProfileType, DecodeError>
fn try_from(value: i32) -> Result<ProfileType, DecodeError>
impl Copy for ProfileType
impl Eq for ProfileType
impl StructuralPartialEq for ProfileType
Auto Trait Implementations§
impl Freeze for ProfileType
impl RefUnwindSafe for ProfileType
impl Send for ProfileType
impl Sync for ProfileType
impl Unpin for ProfileType
impl UnwindSafe for ProfileType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request