MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 13.58.161.115
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) :  /usr/share/pixmaps/../tabset/../dstat/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //usr/share/pixmaps/../tabset/../dstat/dstat_top_latency.pyo
�
���Kc@sdefd��YZdS(tdstat_plugincBs2eZdZd�Zd�Zd�Zd�ZRS(s)
    Top process with highest total latency.

    Displays name and total amount of CPU time waited in milliseconds of
    the process that has the highest total amount waited for the measured
    timeframe.

    For more information see:

        http://eaglet.rain.com/rick/linux/schedstat/
    cCs:d|_d|_d|_d|_d|_i|_dS(Ns
highest totalslatency processtsii(slatency process(tnametvarsttypetwidthtscaletpidset1(tself((s%/usr/share/dstat/dstat_top_latency.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_latency.pytcheckscCs�d|_i|_d|jd<x7t�D],}yX|jj|�s[idd6|j|<ntd|�ddd!}td|�}Wn'tk
r�q)ntk
r�q)nXt	|�d	kr�q)nit
|d�d6|j|<|j|d|j|dd
t}||jdkr)||jd<||jd<t||�|jd<q)q)Wt
tjkrw|j|_n|jdd
kr�d|jd|jdd|jd!t|jdddd�f|_ndS(Ntitresultt
wait_tickss
/proc/%s/statii����s/proc/%s/schedstatig�?tpidRgs%-*s%sitdid(toutputtpidset2tvaltproc_pidlistRthas_keytproc_splitlinetIOErrort
IndexErrortlentlongtelapsedtgetnamebypidtsteptoptdelayRtcprint(RRRtlttotwait((s%/usr/share/dstat/dstat_top_latency.pytextracts2		


(

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

MMCT - 2023