pub struct ProfilingSection {
pub enabled: bool,
pub keep_last_runs: usize,
}Expand description
Shell-init profiling settings. Root-only — per-pack overrides are meaningless (the init script is one thing; you can’t half-profile it).
See docs/proposals/profiling.lex for the full design.
Fields§
§enabled: boolWhether the generated dodot-init.sh carries the timing wrapper
around each source and PATH line. When false, the init script
is byte-identical to the pre-Phase-2 form. When true, bash 5+ /
zsh sessions emit one TSV per shell startup under
<data_dir>/probes/shell-init/; older shells fall through to
the no-op path even with the wrapper present.
keep_last_runs: usizeMaximum number of <data_dir>/probes/shell-init/profile-*.tsv
files to retain. Older files are pruned at the end of every
dodot up. At ~4 KB per run, the default budget is roughly
400 KB on disk.
Trait Implementations§
Source§impl Clone for ProfilingSection
impl Clone for ProfilingSection
Source§fn clone(&self) -> ProfilingSection
fn clone(&self) -> ProfilingSection
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 Config for ProfilingSection
impl Config for ProfilingSection
Source§type Layer = ProfilingSectionLayer
type Layer = ProfilingSectionLayer
A layer of
Self (a potentially partial configuration). Read moreSource§fn from_layer(layer: Self::Layer) -> Result<Self, Error>
fn from_layer(layer: Self::Layer) -> Result<Self, Error>
Tries to create
Self from a layer and validates itself. Read moreSource§fn builder() -> Builder<Self>
fn builder() -> Builder<Self>
Convenience builder to configure, load and merge multiple configuration
sources. Sources specified earlier have a higher priority; later
sources only fill in the gaps. After all sources have been loaded, the
default values (usually specified with
#[default = ...]) are merged
(with the lowest priority). Read moreSource§impl Debug for ProfilingSection
impl Debug for ProfilingSection
Source§impl<'de> Deserialize<'de> for ProfilingSection
impl<'de> Deserialize<'de> for ProfilingSection
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
Auto Trait Implementations§
impl Freeze for ProfilingSection
impl RefUnwindSafe for ProfilingSection
impl Send for ProfilingSection
impl Sync for ProfilingSection
impl Unpin for ProfilingSection
impl UnsafeUnpin for ProfilingSection
impl UnwindSafe for ProfilingSection
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