Struct inferno::collapse::perf::Folder[][src]

pub struct Folder { /* fields omitted */ }
Expand description

A stack collapser for the output of perf script.

To construct one, either use perf::Folder::default() or create an Options and use perf::Folder::from(options).

Trait Implementations

impl Default for Folder[src]

fn default() -> Self[src]

Returns the “default value” for a type. Read more

impl From<Options> for Folder[src]

fn from(opt: Options) -> Self[src]

Performs the conversion.

Auto Trait Implementations

impl RefUnwindSafe for Folder

impl Send for Folder

impl Sync for Folder

impl Unpin for Folder

impl UnwindSafe for Folder

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> Collapse for T where
    T: CollapsePrivate, 
[src]

pub fn collapse<R, W>(&mut Self, R, W) -> Result<(), Error> where
    R: BufRead,
    W: Write
[src]

Collapses the contents of the provided reader and writes folded stack lines to the provided writer. Read more

pub fn is_applicable(&mut Self, &str) -> Option<bool>[src]

Returns whether this implementation is appropriate for the given input. Read more

fn collapse_file<P, W>(&mut self, infile: Option<P>, writer: W) -> Result<()> where
    P: AsRef<Path>,
    W: Write
[src]

Collapses the contents of the provided file (or of STDIN if infile is None) and writes folded stack lines to provided writer. Read more

fn collapse_file_to_stdout<P>(&mut self, infile: Option<P>) -> Result<()> where
    P: AsRef<Path>, 
[src]

Collapses the contents of the provided file (or of STDIN if infile is None) and writes folded stack lines to STDOUT. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.