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
impl ProcessState
Sourcepub fn from_minidump_file<P: AsRef<Path>>(
file_path: P,
frame_infos: Option<&FrameInfoMap<'_>>,
) -> Result<ProcessState>
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.
Sourcepub fn from_minidump_buffer(
buffer: &[u8],
frame_infos: Option<&FrameInfoMap<'_>>,
) -> Result<ProcessState>
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.
Sourcepub fn referenced_modules(&self) -> HashSet<&CodeModule>
pub fn referenced_modules(&self) -> HashSet<&CodeModule>
Returns a list of all CodeModules referenced in one of the CallStacks.