관리-도구
편집 파일: _psaix.cpython-36.opt-1.pyc
3 ��JZ�K � @ s� d Z ddlZddlZddlZddlZddlZddlZddlmZ ddl m Z ddlmZ ddlm Z ddlmZ dd lmZ dd lmZ ddlmZ ddlmZ dd lmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ dgZ e!ed�Z"ej#d�Z$ej%Z%ej&ej'ej(ej)ej*ej+ej,ej+ej-ej.iZ/ej0ej1ej2ej3ej4ej5ej6ej7ej8ej9ej:ej;ej<ej=ej>ej?ej@ejAejBejCejDejEejFejGiZHeIddddddddd�ZJed d!d"g�ZKeKZLed#d$d%d&d'g�ZMed(d)d*d+d,d-g�ZNed.d/d!d0d1g�ZOed2d3d4jPeOjQ� �ZRd5d6� ZSd7d8� ZTd9d:� ZUd;d<� ZVd=d>� ZWd?d@� ZXdAdB� ZYdCdD� ZZej[Z[e j\Z\dXdFdG�Z]ej^Z^ej_Z_dZdHdI�Z`dJdK� ZadLdM� ZbdNdO� ZcdPdQ� ZddRdS� ZedTdU� ZfG dVdW� dWeg�ZhdS )[zAIX platform implementation.� N)� namedtuple)�AF_INET� )�_common)�_psposix)�_psutil_aix)� _psutil_posix)�AF_INET6)�memoize_when_activated)�NIC_DUPLEX_FULL)�NIC_DUPLEX_HALF)�NIC_DUPLEX_UNKNOWN)�sockfam_to_enum)�socktype_to_enum)� usage_percent)�PY3)�AccessDenied)� NoSuchProcess)� ZombieProcess�PROCFS_PATH�proc_threads�SC_PAGE_SIZE� � � � � � )�ppid�rss�vms�create_time�nice�num_threads�status�ttynr�pmemr r � scputimes�user�systemZidleZiowait�svmem�totalZ available�percent�used�free� pmmap_grouped�pathZanon�locked� pmmap_extzaddr perms � c C s t jd jS )z+Return updated psutil.PROCFS_PATH constant.Zpsutil)�sys�modulesr � r6 r6 �/usr/lib64/python3.6/_psaix.py�get_procfs_pathl s r8 c C s4 t j� \} }}}}t| | | dd�}t| ||||�S )Nr )�_round)�cextZvirtual_memr r* )r+ Zavailr. ZpinnedZinuser, r6 r6 r7 �virtual_memoryv s r; c C s: t j� \} }}}| | }t|| dd�}tj| |||||�S )z=Swap system memory as a (total, used, free, sin, sout) tuple.r )r9 )r: Zswap_memr r Zsswap)r+ r. ZsinZsoutr- r, r6 r6 r7 �swap_memory| s r<