Struct breakpad::ProcessState
[−]
[src]
pub struct ProcessState { /* fields omitted */ }
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 StackFrame
s, create a Resolver
and
load all CodeModules
included in one of the frames. To get a list of all
these modules use referenced_modules
.
Methods
impl ProcessState
[src]
fn from_minidump_file<P: AsRef<Path>>(
file_path: P,
frame_infos: Option<&FrameInfoMap>
) -> Result<ProcessState>
[src]
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.
fn from_minidump_buffer(
buffer: &[u8],
frame_infos: Option<&FrameInfoMap>
) -> Result<ProcessState>
[src]
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.
fn threads(&self) -> &[&CallStack]
[src]
Returns a list of CallStack
s in the minidump.
fn referenced_modules(&self) -> HashSet<&CodeModule>
[src]
Returns a list of all CodeModule
s referenced in one of the CallStack
s.