Wp.ProcInfo

Fields

None

Methods

get_arg (index)

get_cgroup ()

get_n_args ()

get_parent_pid ()

get_pid ()

ref ()

unref ()

Details

class Wp.ProcInfo

Wp.ProcInfo holds information of a process.

get_arg(index)
Parameters:

index (int) – the index of the arg

Returns:

the indexed arg of the process information object

Return type:

str

Gets the indexed arg of a process information object.

get_cgroup()
Returns:

the systemd cgroup of the process information object

Return type:

str

Gets the systemd cgroup of a process information object.

get_n_args()
Returns:

the number of args of the process information object

Return type:

int

Gets the number of args of a process information object.

get_parent_pid()
Returns:

the parent PID of the process information object

Return type:

int

Gets the parent PID of a process information object.

get_pid()
Returns:

the PID of the process information object

Return type:

int

Gets the PID of a process information object.

ref()
Returns:

self with an additional reference count on it

Return type:

Wp.ProcInfo

Increases the reference count of a process information object.

unref()

Decreases the reference count on self and frees it when the ref count reaches zero.