To provide the most recent news and documentation www.pymvpa.org reflects the development 2.0 series (renamed 0.6 series) of PyMVPA. If you are interested in the documentation of the previous stable 0.4 series of PyMVPA, please visit v04.pymvpa.org.

mvpa2.base.verbosity.Process

Inheritance diagram of Process

class mvpa2.base.verbosity.Process(pid)

Represents an OS process.

Create a new Process object, raises NoSuchProcess if the PID does not exist, and ValueError if the parameter is not an integer PID.

cmdline

The command line process has been called with.

create_time

The process creation time as a floating point number expressed in seconds since the epoch, in UTC.

exe

The process executable as an absolute path name.

get_children()

Return the children of this process as a list of Process objects.

get_connections(kind='inet')

Return connections opened by process as a list of namedtuples. The kind parameter filters for connections that fit the following criteria:

Kind Value Connections using inet IPv4 and IPv6 inet4 IPv4 inet6 IPv6 tcp TCP tcp4 TCP over IPv4 tcp6 TCP over IPv6 udp UDP udp4 UDP over IPv4 udp6 UDP over IPv6 all the sum of all the possible families and protocols

get_cpu_percent(interval=0.1)

Return a float representing the current process CPU utilization as a percentage.

When interval is > 0.0 compares process times to system CPU times elapsed before and after the interval (blocking).

When interval is 0.0 or None compares process times to system CPU times elapsed since last call, returning immediately. In this case is recommended for accuracy that this function be called with at least 0.1 seconds between calls.

get_cpu_times()

Return a tuple whose values are process CPU user and system times. The same as os.times() but per-process.

get_io_counters()

Return process I/O statistics as a namedtuple including the number of read/write calls performed and the amount of bytes read and written by the process.

get_ionice()

Return process I/O niceness (priority) as a namedtuple.

get_memory_info()

Return a tuple representing RSS (Resident Set Size) and VMS (Virtual Memory Size) in bytes.

On UNIX RSS and VMS are the same values shown by ps.

On Windows RSS and VMS refer to “Mem Usage” and “VM Size” columns of taskmgr.exe.

get_memory_percent()

Compare physical system memory to process resident memory and calculate process memory utilization as a percentage.

get_num_threads()

Return the number of threads used by this process.

get_open_files()

Return files opened by process as a list of namedtuples including absolute file name and file descriptor number.

get_threads()

Return threads opened by process as a list of namedtuples including thread id and thread CPU times (user/system).

getcwd()

Return a string representing the process current working directory.

gids

Return a named tuple denoting the process real, effective, and saved group ids.

is_running()

Return whether this process is running.

kill()

Kill the current process.

name

The process name.

nice

Get or set process niceness (priority).

parent

Return the parent process as a Process object. If no parent pid is known return None.

pid

The process pid.

ppid

The process parent pid.

resume()

Resume process execution.

send_signal(sig)

Send a signal to process (see signal module constants). On Windows only SIGTERM is valid and is treated as an alias for kill().

set_ionice(ioclass, value=None)

Set process I/O niceness (priority). ioclass is one of the IOPRIO_CLASS_* constants. iodata is a number which goes from 0 to 7. The higher the value, the lower the I/O priority of the process.

status

The process current status as a STATUS_* constant.

suspend()

Suspend process execution.

terminal

The terminal associated with this process, if any, else None.

terminate()

Terminate the process with SIGTERM. On Windows this is an alias for kill().

uids

Return a named tuple denoting the process real, effective, and saved user ids.

username

The name of the user that owns the process. On UNIX this is calculated by using real process uid.

wait(timeout=None)

Wait for process to terminate and, if process is a children of the current one also return its exit code, else None.

NeuroDebian

NITRC-listed