Your IP : 18.223.172.243
3
��JZ=C � @ s� d Z ddlZddlZddlZddlZddlmZ ddlmZ ddl m
Z
ddl mZ ddl mZ
dd l mZ dd
l
mZ ddl
mZ ddl
mZ dd
l
mZ ddl
mZ ddl
mZ ddl
mZ ddl
mZ ddlmZ ddlmZ ddlmZ g Zejd�ZejZe
j e
j!e
j"e
j#e
j$e
j%e
j&e
j'e
j(e
j)e
j*e
j+e
j,e
j-e
j.e
j/e
j0e
j1e
j2e
j3e
j4e
j5e
j6e
j7iZ8e
j9e
j:e
j;e
j<e
j=e
j>e
j?e
j@e
jAe
jBiZCeDdddddddddddd�ZEeDddddddddd �ZFed!d"d#d$d%g�ZGed&d'd(d)d*d+d,d-d.g�ZHed/d0d1d2d3g�ZIed4eIjJda �ZKed6d7�ZLed8d9d:jMeLjJ� �ZNd;d<� ZOd=d>� ZPd?d@� ZQdAdB� ZRdCdD� ZSdEdF� ZTdGdH� ZUdIdJ� ZVejWZWe
jXZXdbdLdM�ZYdNdO� ZZe
j[Z[ej\Z\dcdQdR�Z]dSdT� Z^dUdV� Z_dWdX� Z`dYdZ� ZaejbZbd[d\� Zcejdd]d^� �ZeG d_d`� d`ef�ZgdS )dzOSX platform implementation.� N)�AF_INET)�
namedtuple� )�_common)�_psposix)�_psutil_osx)�
_psutil_posix)�AF_INET6)� conn_tmap)�
isfile_strict)�memoize_when_activated)�parse_environ_block)�sockfam_to_enum)�socktype_to_enum)�
usage_percent)�AccessDenied)�
NoSuchProcess)�
ZombieProcess�SC_PAGE_SIZE� � � � � � � � �
)�ppid�ruid�euid�suid�rgid�egid�sgid�ttynr�ctime�status�name)�cpuutime�cpustime�rss�vms�pfaults�pageins�
numthreads�volctxsw� scputimes�user�nice�system�idle�svmem�totalZ available�percent�used�free�active�inactive�wired�pmemr+ r, r- r. �pfullmem�uss�
pmmap_groupedz7path rss private swapped dirtied ref_count shadow_depth� pmmap_extzaddr perms � c C sN t j� \} }}}}|| }|| | }t| | | dd�}t| |||||||�S )z&System virtual memory as a namedtuple.r )�_round)�cextZvirtual_memr r6 )r7 r; r<