| Server IP : 210.245.233.93 / Your IP : 216.73.216.226 Web Server : Apache/2.2.15 (CentOS) System : Linux webserver2.onesolution.com.hk 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64 User : apache ( 48) PHP Version : 5.3.3 Disable Function : exec, shell_exec, system, passthru, popen, proc_open, pcntl_exec MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/dstat/ |
Upload File : |
Ñò
_
Kc @ s d e f d „ ƒ YZ d S( t dstat_pluginc B s) e Z d Z d „ Z d „ Z d „ Z RS( s
Most expensive CPU process.
Displays the process that uses the CPU the most during the monitored
interval. The value displayed is the percentage of CPU time for the total
amount of CPU processing power. Based on per process CPU information.
c C sF d | _ d | _ d | _ d | _ d | _ t t i ƒ ƒ | _ d S( Ns most expensivet si i s memory process( s memory process( t namet typet widtht scalet varst strt ost getpidt pid( t self( ( s! /usr/share/dstat/dstat_top_mem.pyt __init__ s c C sj d | i d <x
t i d ƒ D]ù } yA t | ƒ | | i j o w n t d | ƒ i ƒ i ƒ } Wn+ t j
o
q n t j
o
q n Xt
| ƒ d j o q n t | d ƒ t } | | i d j o q n | | i d <t | | d d d !ƒ | i d <| | i d <q Wd
| i
d | i d d | i
d !t | i d d
d d ƒ f | i d <d S( Ng t maxs /proc/s
/proc/%s/stati i iÿÿÿÿR R
s %-*s%si i t fi s memory process( t valR t listdirt intR
t opent readt splitt
ValueErrort IOErrort lent pagesizet getnamebypidR t cprint( R R
t lt usage( ( s! /usr/share/dstat/dstat_top_mem.pyt extract s*
!c C s d | i d | i d f S( Ns %s / %d%%R R
( R ( R ( ( s! /usr/share/dstat/dstat_top_mem.pyt showcsv4 s ( t __name__t
__module__t __doc__R R R ( ( ( s! /usr/share/dstat/dstat_top_mem.pyR s !N( t dstatR ( ( ( s! /usr/share/dstat/dstat_top_mem.pyt <module> s