Sindbad~EG File Manager
3
�[g? � @ s� d Z ddlZddlZddlZddlmZ ddlmZ ddlmZ ddlm Z
ddlmZ dd lm
Z
dd
lmZ ddlmZ ddlmZ dd
lmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ g Zej� ZejZe
jeje
jej e
j!ej"e
j#ej$e
j%ej&e
j'ej(e
j)ej*e
j+ej,e
j-ej.e
j/ej0e
j1ej2e
j3ej4iZ5e
j6ej7e
j8ej9e
j:ej;e
j<ej=e
j>ej?iZ@eAdddddddddddd�ZBeAddddddddd�ZCedd d!d"d#g�ZDed$d%d&d'd(d)d*d+d,g�ZEed-d.d/d0d1g�ZFed2eFjGdZ �ZHd4d5� ZId6d7� ZJd8d9� ZKd:d;� ZLd<d=� ZMd>d?� ZNd@dA� ZOdBdC� ZPejQZQe
jRZRd[dEdF�ZSdGdH� ZTe
jUZUejVZVd\dJdK�ZWdLdM� ZXdNdO� ZYdPdQ� ZZdRdS� Z[ej\Z\dTdU� Z]dVdW� Z^G dXdY� dY�Z_dS )]zmacOS platform implementation.� N)�
namedtuple� )�_common)�_psposix)�_psutil_osx)�
_psutil_posix)�AccessDenied)�
NoSuchProcess)�
ZombieProcess)� conn_tmap)�conn_to_ntuple)�
isfile_strict)�memoize_when_activated)�parse_environ_block)�
usage_percent)�PermissionError)�ProcessLookupError� � � � � � � � �
)�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�total� available�percent�used�free�active�inactive�wired�pmemr) r* r+ r, �pfullmem�ussc C sT t j� \} }}}}}|| }|| }||8 }t| | | dd�}t| |||||||�S )z&System virtual memory as a namedtuple.r )�round_)�cextZvirtual_memr r4 ) r5 r: r; r<