| 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 sX d | _ d | _ d | _ d | _ d | _ t t i ƒ ƒ | _ h | _ h | _
d S( Ns most expensivet si i s cpu process( s cpu process( t namet typet widtht scalet varst strt ost getpidt pidt pidset1t pidset2( t self( ( s! /usr/share/dstat/dstat_top_cpu.pyt __init__ s c C s d | i d <d | i d <xit i d ƒ D]X} 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 | i i | ƒ p d | i | <n t | d ƒ t | d
ƒ | i
| <| i
| | i | d t t } | | i d j o q* n | d d d
!} | | i d <| | i d <t | | ƒ | i d <q* W| i d d j oP d | i d | i d d | i d !t | i d d d d ƒ f | i d <n t t i j o | i i | i
ƒ n d S( Ng t maxt s cpu processs /proc/s
/proc/%s/stati i i
i g ð?i iÿÿÿÿR
R s %-*s%si t fi"