pub struct TimelineQuery { /* private fields */ }Expand description
Timeline query engine
Provides functionality to query events based on time ranges and other temporal criteria.
Implementations§
Source§impl TimelineQuery
impl TimelineQuery
Sourcepub fn new(event_store: Arc<EventStore>) -> Self
pub fn new(event_store: Arc<EventStore>) -> Self
Create a new timeline query
Sourcepub fn get_events_in_range(&self, start: u64, end: u64) -> Vec<MemoryEvent>
pub fn get_events_in_range(&self, start: u64, end: u64) -> Vec<MemoryEvent>
Get events in a time range
§Arguments
start- Start timestamp (inclusive)end- End timestamp (exclusive)
Sourcepub fn get_allocations_in_range(&self, start: u64, end: u64) -> Vec<MemoryEvent>
pub fn get_allocations_in_range(&self, start: u64, end: u64) -> Vec<MemoryEvent>
Get allocation events in a time range
§Arguments
start- Start timestamp (inclusive)end- End timestamp (exclusive)
Sourcepub fn get_deallocations_in_range(
&self,
start: u64,
end: u64,
) -> Vec<MemoryEvent>
pub fn get_deallocations_in_range( &self, start: u64, end: u64, ) -> Vec<MemoryEvent>
Get deallocation events in a time range
§Arguments
start- Start timestamp (inclusive)end- End timestamp (exclusive)
Sourcepub fn get_thread_events_in_range(
&self,
thread_id: u64,
start: u64,
end: u64,
) -> Vec<MemoryEvent>
pub fn get_thread_events_in_range( &self, thread_id: u64, start: u64, end: u64, ) -> Vec<MemoryEvent>
Get events for a specific thread in a time range
§Arguments
thread_id- The thread ID to filter bystart- Start timestamp (inclusive)end- End timestamp (exclusive)
Sourcepub fn get_memory_usage_over_time(
&self,
start: u64,
end: u64,
interval_ms: u64,
) -> Vec<(u64, usize)>
pub fn get_memory_usage_over_time( &self, start: u64, end: u64, interval_ms: u64, ) -> Vec<(u64, usize)>
Get memory usage over time with cumulative tracking.
§Arguments
start- Start timestamp (inclusive)end- End timestamp (exclusive)interval_ms- Interval between snapshots in milliseconds
§Returns
Vector of (timestamp, cumulative_memory_bytes) tuples showing the actual memory usage at each point in time.
Sourcepub fn get_peak_memory_in_range(&self, start: u64, end: u64) -> usize
pub fn get_peak_memory_in_range(&self, start: u64, end: u64) -> usize
Auto Trait Implementations§
impl Freeze for TimelineQuery
impl !RefUnwindSafe for TimelineQuery
impl Send for TimelineQuery
impl Sync for TimelineQuery
impl Unpin for TimelineQuery
impl UnsafeUnpin for TimelineQuery
impl !UnwindSafe for TimelineQuery
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> 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