관리-도구
편집 파일: _psosx.cpython-37.pyc
B �=�_VD � @ s� d Z ddlZddlZddlZddlZddlmZ ddlmZ ddlm Z ddlm Z ddlmZ dd lmZ dd lmZ ddlmZ ddlmZ dd lmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ g Ze �� Ze jZejejej ej!ej"ej#ej$ej%ej&ej'ej(ej)ej*ej+ej,ej-ej.ej/ej0ej1ej2ej3ej4ej5iZ6ej7ej8ej9ej:ej;ej<ej=ej>ej?ej@iZAeBdddddddddddd�ZCeBddddddddd�ZDedd d!d"d#g�ZEed$d%d&d'd(d)d*d+d,g�ZFed-d.d/d0d1g�ZGed2eGjHd3 �ZId4d5� ZJd6d7� ZKd8d9� ZLd:d;� ZMd<d=� ZNd>d?� ZOd@dA� ZPdBdC� ZQe jRZRejSZSd\dEdF�ZTdGdH� ZUejVZVe jWZWd]dJdK�ZXdLdM� ZYdNdO� ZZdPdQ� Z[dRdS� Z\e j]Z]dTdU� Z^dVdW� Z_ej`dXdY� �ZaG dZd[� d[eb�ZcdS )^zmacOS platform implementation.� N)� namedtuple� )�_common)�_psposix)�_psutil_osx)� _psutil_posix)�AccessDenied)� conn_tmap)�conn_to_ntuple)� isfile_strict)�memoize_when_activated)� NoSuchProcess)�parse_environ_block)� usage_percent)� ZombieProcess)�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�totalZ 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 )�round_)�cextZvirtual_memr r4 ) r5 r9 r: r; r8 ZspeculativeZavailr7 r6 � rA �@/opt/alt/python37/lib64/python3.7/site-packages/psutil/_psosx.py�virtual_memoryp s rC c C s4 t �� \} }}}}t|| dd�}t�| |||||�S )z=Swap system memory as a (total, used, free, sin, sout) tuple.r )r? )r@ Zswap_memr r �sswap)r5 r7 r8 �sin�soutr6 rA rA rB �swap_memory� s rG c C s t �� \} }}}t| |||�S )z(Return system CPU times as a namedtuple.)r@ � cpu_timesr/ )r0 r1 r2 r3 rA rA rB rH � s rH c C s>