pub struct StoreReadGuard<'a> {
guard: RwLockReadGuard<'a, StoreWithGeneration>,
}Fields§
§guard: RwLockReadGuard<'a, StoreWithGeneration>Implementations§
Source§impl StoreReadGuard<'_>
impl StoreReadGuard<'_>
pub fn generation(&self) -> usize
Methods from Deref<Target = Store>§
pub fn has_time_info(&self) -> bool
pub fn set_max_self_time_lookup(&self, time: Timestamp)
Sourcepub fn memory_samples_for_range(
&self,
start: Timestamp,
end: Timestamp,
) -> Vec<u64>
pub fn memory_samples_for_range( &self, start: Timestamp, end: Timestamp, ) -> Vec<u64>
Returns up to MAX_MEMORY_SAMPLES memory samples in the range
[start, end]. When more samples exist, groups of N consecutive
samples are merged by taking the maximum memory value in each group.
Sourcepub fn memory_samples_for_range_with_ts(
&self,
start: Timestamp,
end: Timestamp,
) -> Vec<(Timestamp, u64, u8)>
pub fn memory_samples_for_range_with_ts( &self, start: Timestamp, end: Timestamp, ) -> Vec<(Timestamp, u64, u8)>
Like memory_samples_for_range but keeps the timestamps and the
memory-pressure byte. Timestamps are absolute store timestamps (same
reference frame as span start/end). When the raw slice exceeds
MAX_MEMORY_SAMPLES, each merged group is represented by the sample
whose memory value was the group’s max (its timestamp and pressure
byte are kept alongside it).
Sourcepub fn memory_pressure_samples_for_range(
&self,
start: Timestamp,
end: Timestamp,
) -> Vec<u8> ⓘ
pub fn memory_pressure_samples_for_range( &self, start: Timestamp, end: Timestamp, ) -> Vec<u8> ⓘ
Returns up to MAX_MEMORY_SAMPLES memory pressure values in the range
[start, end]. The returned slice has the same length and group
boundaries as Self::memory_samples_for_range so that the two
results can be rendered in parallel. Each group is downsampled by
taking the maximum pressure value.
fn memory_samples_slice( &self, start: Timestamp, end: Timestamp, ) -> &[(Timestamp, u64, u8)]
pub fn root_spans(&self) -> impl Iterator<Item = SpanRef<'_>>
pub fn root_span(&self) -> SpanRef<'_>
pub fn span(&self, id: NonZeroUsize) -> Option<(SpanRef<'_>, bool)>
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for StoreReadGuard<'a>
impl<'a> !Send for StoreReadGuard<'a>
impl<'a> !UnwindSafe for StoreReadGuard<'a>
impl<'a> Freeze for StoreReadGuard<'a>
impl<'a> Sync for StoreReadGuard<'a>
impl<'a> Unpin for StoreReadGuard<'a>
impl<'a> UnsafeUnpin for StoreReadGuard<'a>
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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