ProcessState

Struct ProcessState 

Source
pub struct ProcessState { /* private fields */ }
Expand description

Snapshot of the state of a processes during its crash. The object can be obtained by processing Minidump or Microdump files.

To get source code information for StackFrames, create a Resolver and load all CodeModules included in one of the frames. To get a list of all these modules use referenced_modules.

Implementations§

Source§

impl ProcessState

Source

pub fn from_minidump_file<P: AsRef<Path>>( file_path: P, frame_infos: Option<&FrameInfoMap<'_>>, ) -> Result<ProcessState>

Reads a minidump from the filesystem into memory and processes it

Returns a ProcessState that contains information about the crashed process. The parameter frame_infos expects a map of Breakpad symbols containing STACK CFI and STACK WIN records to allow stackwalking with omitted frame pointers.

Source

pub fn from_minidump_buffer( buffer: &[u8], frame_infos: Option<&FrameInfoMap<'_>>, ) -> Result<ProcessState>

Processes a minidump supplied via raw binary data

Returns a ProcessState that contains information about the crashed process. The parameter frame_infos expects a map of Breakpad symbols containing STACK CFI and STACK WIN records to allow stackwalking with omitted frame pointers.

Source

pub fn threads(&self) -> &[&CallStack]

Returns a list of CallStacks in the minidump.

Source

pub fn referenced_modules(&self) -> HashSet<&CodeModule>

Returns a list of all CodeModules referenced in one of the CallStacks.

Trait Implementations§

Source§

impl Debug for ProcessState

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Drop for ProcessState

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

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<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

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

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

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.