psutil._pssunos

Sun OS Solaris platform implementation.

Module Contents

__extra__all__ = ['CONN_IDLE', 'CONN_BOUND', 'PROCFS_PATH']
PAGE_SIZE
IS_64_BIT
CONN_IDLE = IDLE
CONN_BOUND = BOUND
PROC_STATUSES
TCP_STATUSES
proc_info_map
NoSuchProcess
ZombieProcess
AccessDenied
TimeoutExpired
scputimes
pcputimes
svmem
pmem
pfullmem
pmmap_grouped
pmmap_ext
get_procfs_path()

Return updated psutil.PROCFS_PATH constant.

virtual_memory()

Report virtual memory metrics.

swap_memory()

Report swap memory metrics.

cpu_times()

Return system-wide CPU times as a named tuple

per_cpu_times()

Return system per-CPU times as a list of named tuples

cpu_count_logical()

Return the number of logical CPUs in the system.

cpu_count_physical()

Return the number of physical CPUs in the system.

cpu_stats()

Return various CPU stats as a named tuple.

disk_io_counters
disk_usage
disk_partitions(all=False)

Return system disk partitions.

net_io_counters
net_if_addrs
net_connections(kind, _pid=-1)

Return socket connections. If pid == -1 return system-wide connections (as opposed to connections opened by one process only). Only INET sockets are returned (UNIX are not).

net_if_stats()

Get NIC stats (isup, duplex, speed, mtu).

boot_time()

The system boot time expressed in seconds since the epoch.

users()

Return currently connected users as a list of namedtuples.

pids()

Returns a list of PIDs currently running on the system.

pid_exists(pid)

Check for the existence of a unix pid.

wrap_exceptions(fun)

Call callable into a try/except clause and translate ENOENT, EACCES and EPERM in NoSuchProcess or AccessDenied exceptions.

class Process(pid)

Bases:object

Wrapper class around underlying C implementation.

__slots__ = ['pid', '_name', '_ppid', '_procfs_path', '_cache']
memory_full_info
nt_mmap_grouped
nt_mmap_ext
_assert_alive(self)

Raise NSP if the process disappeared on us.

oneshot_enter(self)
oneshot_exit(self)
_proc_name_and_args(self)
_proc_basic_info(self)
_proc_cred(self)
name(self)
exe(self)
cmdline(self)
environ(self)
create_time(self)
num_threads(self)
nice_get(self)
nice_set(self, value)
ppid(self)
uids(self)
gids(self)
cpu_times(self)
cpu_num(self)
terminal(self)
cwd(self)
memory_info(self)
status(self)
threads(self)
open_files(self)
_get_unix_sockets(self, pid)

Get UNIX sockets used by process by parsing ‘pfiles’ output.

connections(self, kind='inet')
memory_maps(self)
num_fds(self)
num_ctx_switches(self)
wait(self, timeout=None)