pub struct RootMemorySnapshot {Show 15 fields
pub status: &'static str,
pub attributed_bytes: u64,
pub semantic: MemoryEstimate,
pub trigram: MemoryEstimate,
pub symbols: MemoryEstimate,
pub callgraph: MemoryEstimate,
pub callgraph_projection: MemoryEstimate,
pub inspect: MemoryEstimate,
pub bash: MemoryEstimate,
pub lsp: MemoryEstimate,
pub parser_pool: MemoryEstimate,
pub pending_install: MemoryEstimate,
pub exact_memo: MemoryEstimate,
pub compression_filters: MemoryEstimate,
pub data_layer: Option<MemoryEstimate>,
}Fields§
§status: &'static str§attributed_bytes: u64§semantic: MemoryEstimate§trigram: MemoryEstimate§symbols: MemoryEstimate§callgraph: MemoryEstimate§callgraph_projection: MemoryEstimate§inspect: MemoryEstimate§bash: MemoryEstimate§lsp: MemoryEstimate§parser_pool: MemoryEstimate§pending_install: MemoryEstimateFinished artifact loads handed off by their loader but not yet installed. Zero almost always; it is a label of its own so a load that waits is never invisible.
exact_memo: MemoryEstimate§compression_filters: MemoryEstimate§data_layer: Option<MemoryEstimate>What the root’s checkout in the data layer holds that its planes
share: the checkout state lists, its open segments and its snapshot.
The bytes each plane holds alone are in trigram (text), callgraph
and semantic (meaning search), each as data_layer_bytes; the
block cache every checkout shares is counted once per process.
Present only while the data layer runs.
Implementations§
Source§impl RootMemorySnapshot
impl RootMemorySnapshot
pub fn new( semantic: MemoryEstimate, trigram: MemoryEstimate, symbols: MemoryEstimate, callgraph: MemoryEstimate, callgraph_projection: MemoryEstimate, inspect: MemoryEstimate, bash: MemoryEstimate, lsp: MemoryEstimate, parser_pool: MemoryEstimate, ) -> Self
Sourcepub fn with_data_layer(self, data_layer: Option<MemoryEstimate>) -> Self
pub fn with_data_layer(self, data_layer: Option<MemoryEstimate>) -> Self
Attach the data layer’s estimate for this root, when it runs, and fold it into the root’s status and attributed total.
Sourcepub fn with_pending_install(self, pending_install: MemoryEstimate) -> Self
pub fn with_pending_install(self, pending_install: MemoryEstimate) -> Self
Attach the finished-but-uninstalled load estimate and fold it into the root’s status and attributed total.
pub fn with_query_caches( self, exact_memo: MemoryEstimate, compression_filters: MemoryEstimate, ) -> Self
pub fn rollup(&self) -> RootMemoryRollup
pub fn busy_subsystem_count(&self) -> usize
pub fn not_estimated_subsystem_count(&self) -> usize
Sourcepub fn evictable_bytes(&self) -> u64
pub fn evictable_bytes(&self) -> u64
Bytes released when the root goes idle: retained index handles,
symbol data, inspect caches, and the data layer’s checkout, which the
idle reaper’s release drops (its planes’ bytes are in trigram,
semantic and callgraph, what they share in data_layer). This
deliberately shares the already-collected estimates instead of taking
a second estimate on the reply path.
Trait Implementations§
Source§impl Clone for RootMemorySnapshot
impl Clone for RootMemorySnapshot
Source§impl Debug for RootMemorySnapshot
impl Debug for RootMemorySnapshot
impl Eq for RootMemorySnapshot
Source§impl PartialEq for RootMemorySnapshot
impl PartialEq for RootMemorySnapshot
Source§impl Serialize for RootMemorySnapshot
impl Serialize for RootMemorySnapshot
impl StructuralPartialEq for RootMemorySnapshot
Auto Trait Implementations§
impl Forget for RootMemorySnapshot
impl Freeze for RootMemorySnapshot
impl Move for RootMemorySnapshot
impl RefUnwindSafe for RootMemorySnapshot
impl Send for RootMemorySnapshot
impl Sync for RootMemorySnapshot
impl Unpin for RootMemorySnapshot
impl UnsafeUnpin for RootMemorySnapshot
impl UnwindSafe for RootMemorySnapshot
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<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.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> ⓘ
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> ⓘ
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