Plausible CrashReporter
Instance Methods | Class Methods | Properties | List of all members
PLCrashProcessInfo Class Reference

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).
 

Detailed Description

The PLCrashProcessInfo provides methods to access basic information about a target process.

Method Documentation

+ (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.

Parameters
pidThe process identifier of the target process.

Property Documentation

- (pid_t) parentProcessID
readnonatomicassign

The process ID of the parent of the target process.

- (pid_t) processID
readnonatomicassign

The process ID of the target process.

- (NSString*) processName
readnonatomicassign

The name of the target process.

This value is provided as a best-effort, and may be truncated or inaccurate. May be nil.

- (struct timeval) startTime

The process start time.

This is the timestamp at which the process was created.


The documentation for this class was generated from the following files: