Skip to main content

Explorer

Struct Explorer 

Source
pub struct Explorer<'a> {
    pub trace: &'a Trace,
    pub timeline: &'a Timeline,
    /* private fields */
}
Expand description

Reuse a recording’s already-built timeline; constructing an explorer is linear in spans, with self costs computed against the unfiltered tree.

Fields§

§trace: &'a Trace§timeline: &'a Timeline

Implementations§

Source§

impl<'a> Explorer<'a>

Source

pub fn new(trace: &'a Trace, timeline: &'a Timeline) -> Self

Source

pub fn with_index( trace: &'a Trace, timeline: &'a Timeline, index: &'a Index, ) -> Self

Source

pub fn into_index(self) -> Index

Source

pub fn frame_index(&self, id: u64) -> Option<usize>

Source

pub fn frame_detail(&self, index: usize) -> FrameDetail

Source

pub fn span_detail(&self, id: u32) -> Option<SpanDetail>

Source

pub fn frame_for_time(&self, t: u64) -> Option<usize>

Source

pub fn resolve( &self, selection: &Selection, filter: &Filter, ) -> Result<Scope, String>

Source

pub fn keeps_frame(&self, i: usize, filter: &Filter) -> bool

Source

pub fn keeps_span(&self, s: &Span, filter: &Filter) -> bool

Source

pub fn selected_spans<'b>( &'b self, scope: &'b Scope, filter: &'b Filter, ) -> impl Iterator<Item = (usize, &'a Span)> + 'b

Source

pub fn summary(&self, scope: &Scope) -> Summary

Source

pub fn span_groups(&self, scope: &Scope, filter: &Filter) -> Vec<SpanGroup>

Source

pub fn origins(&self, scope: &Scope, filter: &Filter) -> Vec<(Origin, u64, u64)>

Source

pub fn counters(&self, scope: &Scope) -> (Vec<Counter>, Vec<Gauge>)

Source

pub fn readings(&self, scope: &Scope, filter: &Filter) -> Readings

The viewer’s complete tables, without CLI result limits. Attribution uses the original tree; placements/gaps describe the frame population.

Source

pub fn execute(&self, query: &Query) -> Result<ResultSet, String>

Trait Implementations§

Source§

impl Deref for Explorer<'_>

Source§

type Target = Index

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Index

Dereferences the value.

Auto Trait Implementations§

§

impl<'a> Forget for Explorer<'a>

§

impl<'a> Freeze for Explorer<'a>

§

impl<'a> RefUnwindSafe for Explorer<'a>

§

impl<'a> Send for Explorer<'a>

§

impl<'a> Sync for Explorer<'a>

§

impl<'a> Unpin for Explorer<'a>

§

impl<'a> UnsafeUnpin for Explorer<'a>

§

impl<'a> UnwindSafe for Explorer<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.