korsygfhrtzangaiide
Elepffwdsff
/
usr
/
share
/
dstat
/
Upload FileeE
HOME
� ���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 s1 d | _ d | _ d | _ d | _ d | _ d S( Ns most expensives memory processt si i ( s memory process( t namet varst typet widtht scale( t self( ( s! /usr/share/dstat/dstat_top_mem.pyt __init__ s c C s d | j d <x� t � D]� } y t d | � } Wn t k rG q n Xt | � d k r` q n t | d � t } | | j d k r� q n | | j d <t | | d d d !� | j d <| | j d <q Wd | j d | j d d | j d !t | j d d d d � f | _ d S( Ng t maxs /proc/%s/stati i i����R t pids %-*s%si i t fi ( t valt proc_pidlistt proc_splitlinet IOErrort lent intt pagesizet getnamebypidR t cprintt output( R R t lt usage( ( s! /usr/share/dstat/dstat_top_mem.pyt extract s !c C s d | j d | j d f S( Ns %s / %d%%R R ( R ( R ( ( s! /usr/share/dstat/dstat_top_mem.pyt showcsv* 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