pub enum AllocationField {
Show 30 variants
Ptr,
Size,
TimestampAlloc,
ThreadId,
VarName,
TypeName,
ScopeName,
TimestampDealloc,
BorrowCount,
IsLeaked,
LifetimeMs,
BorrowInfo,
CloneInfo,
OwnershipHistoryAvailable,
StackTrace,
SmartPointerInfo,
MemoryLayout,
GenericInfo,
DynamicTypeInfo,
RuntimeState,
StackAllocation,
TemporaryObject,
FragmentationAnalysis,
GenericInstantiation,
TypeRelationships,
TypeUsage,
FunctionCallTracking,
LifecycleTracking,
AccessTracking,
DropChainAnalysis,
}
Expand description
Enumeration of all possible allocation fields that can be selectively read
Variants§
Ptr
Size
TimestampAlloc
ThreadId
VarName
TypeName
ScopeName
TimestampDealloc
BorrowCount
IsLeaked
LifetimeMs
BorrowInfo
CloneInfo
OwnershipHistoryAvailable
StackTrace
SmartPointerInfo
MemoryLayout
GenericInfo
DynamicTypeInfo
RuntimeState
StackAllocation
TemporaryObject
FragmentationAnalysis
GenericInstantiation
TypeRelationships
TypeUsage
FunctionCallTracking
LifecycleTracking
AccessTracking
DropChainAnalysis
Implementations§
Source§impl AllocationField
impl AllocationField
Sourcepub fn all_basic_fields() -> HashSet<Self>
pub fn all_basic_fields() -> HashSet<Self>
Get all basic fields that are commonly needed
Sourcepub fn all_fields() -> HashSet<Self>
pub fn all_fields() -> HashSet<Self>
Get all available fields
Sourcepub fn memory_analysis_fields() -> HashSet<Self>
pub fn memory_analysis_fields() -> HashSet<Self>
Get fields needed for memory analysis
Sourcepub fn lifetime_analysis_fields() -> HashSet<Self>
pub fn lifetime_analysis_fields() -> HashSet<Self>
Get fields needed for lifetime analysis
Sourcepub fn performance_analysis_fields() -> HashSet<Self>
pub fn performance_analysis_fields() -> HashSet<Self>
Get fields needed for performance analysis
Sourcepub fn complex_types_fields() -> HashSet<Self>
pub fn complex_types_fields() -> HashSet<Self>
Get fields needed for complex types analysis
Sourcepub fn unsafe_ffi_fields() -> HashSet<Self>
pub fn unsafe_ffi_fields() -> HashSet<Self>
Get fields needed for unsafe FFI analysis
Sourcepub fn is_basic_field(&self) -> bool
pub fn is_basic_field(&self) -> bool
Check if this field is always available in binary files
Sourcepub fn requires_advanced_metrics(&self) -> bool
pub fn requires_advanced_metrics(&self) -> bool
Check if this field requires advanced metrics to be enabled
Trait Implementations§
Source§impl Clone for AllocationField
impl Clone for AllocationField
Source§fn clone(&self) -> AllocationField
fn clone(&self) -> AllocationField
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AllocationField
impl Debug for AllocationField
Source§impl<'de> Deserialize<'de> for AllocationField
impl<'de> Deserialize<'de> for AllocationField
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for AllocationField
impl Hash for AllocationField
Source§impl PartialEq for AllocationField
impl PartialEq for AllocationField
Source§impl Serialize for AllocationField
impl Serialize for AllocationField
impl Copy for AllocationField
impl Eq for AllocationField
impl StructuralPartialEq for AllocationField
Auto Trait Implementations§
impl Freeze for AllocationField
impl RefUnwindSafe for AllocationField
impl Send for AllocationField
impl Sync for AllocationField
impl Unpin for AllocationField
impl UnwindSafe for AllocationField
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more