Plausible CrashReporter
|
The PLCrashProcessInfo provides methods to access basic information about a target process. More...
Inherits NSObject.
Instance Methods | |
(instancetype) | - initWithProcessID: |
Initialize a new instance with the process info for the process with pid. More... | |
Class Methods | |
(instancetype) | + currentProcessInfo |
Return the current process info of the calling process. More... | |
Properties | |
pid_t | processID |
The process ID of the target process. More... | |
NSString * | processName |
The name of the target process. More... | |
pid_t | parentProcessID |
The process ID of the parent of the target process. More... | |
struct timeval | startTime |
The process start time. More... | |
BOOL | traced |
YES if the target process was being traced (eg, via a debugger). | |
The PLCrashProcessInfo provides methods to access basic information about a target process.
+ (instancetype) currentProcessInfo |
Return the current process info of the calling process.
Note that these values will be fetched once, and the returned instance is immutable.
- (instancetype) initWithProcessID: | (pid_t) | pid |
Initialize a new instance with the process info for the process with pid.
Returns nil if pid does not reference a valid process.
pid | The process identifier of the target process. |
|
readnonatomicassign |
The process ID of the parent of the target process.
|
readnonatomicassign |
The process ID of the target process.
|
readnonatomicassign |
The name of the target process.
This value is provided as a best-effort, and may be truncated or inaccurate.
- (struct timeval) startTime |
The process start time.
This is the timestamp at which the process was created.