#[non_exhaustive]pub enum ProfileType {
Unspecified,
Cpu,
Wall,
Heap,
Threads,
Contention,
PeakHeap,
HeapAlloc,
UnknownValue(UnknownValue),
}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.
§Working with unknown values
This enum is defined as #[non_exhaustive] because Google Cloud may add
additional enum variants at any time. Adding new variants is not considered
a breaking change. Applications should write their code in anticipation of:
- New values appearing in future releases of the client library, and
- New values received dynamically, without application changes.
Please consult the Working with enums section in the user guide for some guidelines.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
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.
UnknownValue(UnknownValue)
If set, the enum was initialized with an unknown value.
Applications can examine the value using ProfileType::value or ProfileType::name.
Implementations§
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§impl<'de> Deserialize<'de> for ProfileType
impl<'de> Deserialize<'de> for ProfileType
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Source§impl Display for ProfileType
impl Display for ProfileType
Source§impl From<&str> for ProfileType
impl From<&str> for ProfileType
Source§impl From<i32> for ProfileType
impl From<i32> for ProfileType
Source§impl PartialEq for ProfileType
impl PartialEq for ProfileType
Source§impl Serialize for ProfileType
impl Serialize 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.