Accesses information about another process, identified by a process ID.
More...
#include "snapshot/linux/process_reader_linux.h"
|
| struct | Module |
| | Contains information about a module loaded into a process. More...
|
| |
| struct | Thread |
| | Contains information about a thread that belongs to a process. More...
|
| |
|
|
| ProcessReaderLinux (const ProcessReaderLinux &)=delete |
| |
|
ProcessReaderLinux & | operator= (const ProcessReaderLinux &)=delete |
| |
| bool | Initialize (PtraceConnection *connection) |
| | Initializes this object.
|
| |
|
bool | Is64Bit () const |
| | Return true if the target task is a 64-bit process.
|
| |
|
pid_t | ProcessID () const |
| | Return the target process' process ID.
|
| |
|
pid_t | ParentProcessID () const |
| | Return the target process' parent process ID.
|
| |
|
const ProcessMemoryLinux * | Memory () const |
| | Return a memory reader for the target process.
|
| |
|
MemoryMap * | GetMemoryMap () |
| | Return a memory map of the target process.
|
| |
| bool | StartTime (timeval *start_time) const |
| | Determines the target process’ start time.
|
| |
| bool | CPUTimes (timeval *user_time, timeval *system_time) const |
| | Determines the target process’ execution time.
|
| |
|
const std::vector< Thread > & | Threads () |
| | Return a vector of threads that are in the task process. If the main thread is able to be identified and traced, it will be placed at index 0.
|
| |
| const std::vector< Module > & | Modules () |
| |
| const std::string & | AbortMessage () |
| |
Accesses information about another process, identified by a process ID.
◆ AbortMessage()
| const std::string & crashpad::ProcessReaderLinux::AbortMessage |
( |
| ) |
|
- Returns
- On Android, the abort message that was passed to android_set_abort_message(). This is only available on Q or later.
◆ CPUTimes()
| bool crashpad::ProcessReaderLinux::CPUTimes |
( |
timeval * | user_time, |
|
|
timeval * | system_time ) const |
Determines the target process’ execution time.
- Parameters
-
| [out] | user_time | The amount of time the process has executed code in user mode. |
| [out] | system_time | The amount of time the process has executed code in system mode. |
- Returns
true on success, false on failure, with a warning logged. On failure, user_time and system_time will be set to represent no time spent executing code in user or system mode.
◆ Initialize()
Initializes this object.
This method must be successfully called before calling any other method in this class and may only be called once.
- Parameters
-
- Returns
true on success. false on failure with a message logged.
◆ Modules()
- Returns
- The modules loaded in the process. The first element (at index
0) corresponds to the main executable.
◆ StartTime()
| bool crashpad::ProcessReaderLinux::StartTime |
( |
timeval * | start_time | ) |
const |
Determines the target process’ start time.
- Parameters
-
| [out] | start_time | The time that the process started. |
- Returns
true on success with start_time set. Otherwise false with a message logged.
The documentation for this class was generated from the following files:
- snapshot/linux/process_reader_linux.h
- snapshot/linux/process_reader_linux.cc