[][src]Trait vignette::types::Unwinder

pub trait Unwinder<T> {
    fn unwind(self, context: T) -> Result<Sample, i32>;
}

Required methods

fn unwind(self, context: T) -> Result<Sample, i32>

Unwind a stack from a context.

Returns the collected frames.

Loading content...

Implementors

impl<'_> Unwinder<&'_ mut ucontext_t> for LibunwindUnwinder[src]

fn unwind(self, context: &mut ucontext_t) -> Result<Sample, i32>[src]

The length of the vector is the actual collected frames (<= max_frames).

This IS safe to use within suspend_and_resume_thread.

TODO: Right now if stepping fails, this whole function fails, but we may want to return the frames we have. We also probably want another state to indicate we had more frames than capacity, so users can report some kind of stats.

Loading content...