#[repr(i32)]pub enum KsymsMemPolicy {
KsymsUnspecified = 0,
KsymsCleanupOnStop = 1,
KsymsRetain = 2,
}
Expand description
When symbolize_ksyms=true, determines whether the traced_probes daemon should keep the symbol map in memory (and reuse it for future tracing sessions) or clear it (saving memory) and re-create it on each tracing session (wasting cpu and wall time). The tradeoff is roughly: KSYMS_RETAIN: pay a fixed ~1.2 MB cost after the first trace. KSYMS_CLEANUP_ON_STOP: pay a ~300-500ms cost when starting each trace. Default behavior: KSYMS_CLEANUP_ON_STOP.
Variants§
Implementations§
Source§impl KsymsMemPolicy
impl KsymsMemPolicy
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 KsymsMemPolicy
impl Clone for KsymsMemPolicy
Source§fn clone(&self) -> KsymsMemPolicy
fn clone(&self) -> KsymsMemPolicy
Returns a copy 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 KsymsMemPolicy
impl Debug for KsymsMemPolicy
Source§impl Default for KsymsMemPolicy
impl Default for KsymsMemPolicy
Source§fn default() -> KsymsMemPolicy
fn default() -> KsymsMemPolicy
Returns the “default value” for a type. Read more
Source§impl From<KsymsMemPolicy> for i32
impl From<KsymsMemPolicy> for i32
Source§fn from(value: KsymsMemPolicy) -> i32
fn from(value: KsymsMemPolicy) -> i32
Converts to this type from the input type.
Source§impl Hash for KsymsMemPolicy
impl Hash for KsymsMemPolicy
Source§impl Ord for KsymsMemPolicy
impl Ord for KsymsMemPolicy
Source§fn cmp(&self, other: &KsymsMemPolicy) -> Ordering
fn cmp(&self, other: &KsymsMemPolicy) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for KsymsMemPolicy
impl PartialEq for KsymsMemPolicy
Source§impl PartialOrd for KsymsMemPolicy
impl PartialOrd for KsymsMemPolicy
Source§impl TryFrom<i32> for KsymsMemPolicy
impl TryFrom<i32> for KsymsMemPolicy
Source§type Error = DecodeError
type Error = DecodeError
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<KsymsMemPolicy, DecodeError>
fn try_from(value: i32) -> Result<KsymsMemPolicy, DecodeError>
Performs the conversion.
impl Copy for KsymsMemPolicy
impl Eq for KsymsMemPolicy
impl StructuralPartialEq for KsymsMemPolicy
Auto Trait Implementations§
impl Freeze for KsymsMemPolicy
impl RefUnwindSafe for KsymsMemPolicy
impl Send for KsymsMemPolicy
impl Sync for KsymsMemPolicy
impl Unpin for KsymsMemPolicy
impl UnwindSafe for KsymsMemPolicy
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