MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 3.142.172.190
Web Server : Apache
System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : ppcad7no ( 715)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /../sys/../usr/share/netpbm/../dstat/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //../sys/../usr/share/netpbm/../dstat/dstat_top_cputime_avg.pyo
�
��Lc@sdefd��YZdS(tdstat_plugincBs2eZdZd�Zd�Zd�Zd�ZRS(sF
    Name and average amount of CPU time consumed in milliseconds of the process
    that has the highest average amount of cputime for the different slices for
    the measured timeframe.

    On a system with one CPU and one core, the total cputime is 1000ms. On a
    system with two cores the total cputime is 2000ms.
    cCs:d|_d|_d|_d|_d|_i|_dS(Nshighest averagescputime processtsii(scputime process(tnametvarsttypetwidthtscaletpidset1(tself((s)/usr/share/dstat/dstat_top_cputime_avg.pyt__init__s					cCs%tjdtj�s!td�ndS(Ns/proc/self/schedstats7Kernel has no scheduler statistics, use at least 2.6.12(tostaccesstR_OKt	Exception(R((s)/usr/share/dstat/dstat_top_cputime_avg.pytcheckscCs>d|_i|_d|jd<x�t�D]�}y_|jj|�sbidd6dd6|j|<ntd|�ddd!}td	|�}Wn'tk
r�q)ntk
r�q)nXt	|�d
kr�q)nit
|d�d6t
|d�d6|j|<|j|d|j|ddkrn|j|d|j|dd|j|d|j|dt}nd}||jdkr)||jd<||jd
<t||�|jd<q)q)Wt
tjkr�|j|_n|jddkr:d|jd|jdd|jd!t|jdddd�f|_ndS(Ntitresultt	run_tickstrans
/proc/%s/statii����s/proc/%s/schedstatiig�?tpidRgs%-*s%sitfid(toutputtpidset2tvaltproc_pidlistRthas_keytproc_splitlinetIOErrort
IndexErrortlentlongtelapsedtgetnamebypidtsteptoptdelayRtcprint(RRRtltavgrun((s)/usr/share/dstat/dstat_top_cputime_avg.pytextracts6		


/&I

cCsd|jd|jdfS(Ns	%s / %.4fRR(R(R((s)/usr/share/dstat/dstat_top_cputime_avg.pytshowcsvHs(t__name__t
__module__t__doc__R	RR'R((((s)/usr/share/dstat/dstat_top_cputime_avg.pyRs
			,N(tdstatR(((s)/usr/share/dstat/dstat_top_cputime_avg.pyt<module>s

MMCT - 2023