관리-도구
편집 파일: _psosx.cpython-38.pyc
U �Mg? � @ 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 Ze�� 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�ZFed2eFjGd3 �ZHd4d5� ZId6d7� ZJd8d9� ZKd:d;� ZLd<d=� ZMd>d?� ZNd@dA� ZOdBdC� ZPejQZQe jRZRdZdEdF�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 �� \} }}}}}|| }|| }||8 }t| | | dd�}t| |||||||�S )z&System virtual memory as a namedtuple.r �Zround_)�cextZvirtual_memr r4 ) r5 r: r; r<