§
    uÒ>]1	  ã                   ó"   —  G d „ de ¦  «        ZdS )c                   ó*   — e Zd ZdZd„ Zd„ Zd„ Zd„ ZdS )Údstat_plugina%  
    Name and total amount of CPU time consumed in milliseconds of the process
    that has the highest total amount of cputime 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.
    c                 óZ   — d| _         d| _        d| _        d| _        d| _        i | _        d S )Nzhighest total)zcputime processÚsé   é    )ÚnameÚvarsÚtypeÚwidthÚscaleÚpidset1©Úselfs    ú%/usr/share/dstat/dstat_top_cputime.pyÚ__init__zdstat_plugin.__init__   s0   € Ø#ˆŒ	Ø(ˆŒ	ØˆŒ	ØˆŒ
ØˆŒ
ØˆŒˆˆó    c                 ón   — t                                dt           j        ¦  «        st          d¦  «        ‚d S )Nz/proc/self/schedstatzKKernel has no scheduler statistics [CONFIG_SCHEDSTATS], use at least 2.6.12)ÚosÚaccessÚR_OKÚ	Exceptionr   s    r   Úcheckzdstat_plugin.check   s7   € Ý�yŠyÐ/µ´Ñ9Ô9ð 	kÝÐiÑjÔjÐjð	kð 	kr   c           	      óf  — d| _         i | _        d| j        d<   t          ¦   «         D �]	}	 || j        vrddi| j        |<   t          d|z  ¦  «        d         dd…         }t          d|z  ¦  «        }n# t          $ r Y ŒXt          $ r Y Œcw xY wt          |¦  «        d	k    rŒ{dt          |d         ¦  «        i| j        |<   | j        |         d         | j        |         d         z
  d
z  t          z  }|| j        d         k    r,|| j        d<   || j        d<   t          ||¦  «        | j        d<   �Œt          t          j        k    r| j        | _        | j        d         dk    rMd| j        dz
  | j        d         d| j        dz
  …         t!          | j        d         ddd¦  «        fz  | _         d S d S )NÚ r   ÚresultÚ	run_ticksz/proc/%s/staté   éÿÿÿÿz/proc/%s/schedstaté   g      ð?Úpidr   g        z%-*s%sé   Údéd   )ÚoutputÚpidset2ÚvalÚproc_pidlistr   Úproc_splitlineÚIOErrorÚ
IndexErrorÚlenÚintÚelapsedÚgetnamebypidÚstepÚopÚdelayr   Úcprint)r   r    r   ÚlÚtotruns        r   Úextractzdstat_plugin.extract   sà  € ØˆŒØˆŒØˆŒ�ÑÝ‘>”>ð 	;ñ 	;ˆCðà˜dœlÐ*Ð*Ø)4°aÐ(8�D”L Ñ%õ & o¸Ñ&;Ñ<Ô<¸QÔ?ÀÀ"ÀÔE�õ #Ð#7¸#Ñ#=Ñ>Ô>��øÝð ð ð Ø�Ýð ð ð Ø�ðøøøõ �1‰vŒv˜Š{ˆ{˜Hà!,­c°!°A´$©i¬iÐ 8ˆDŒL˜Ñà”l 3Ô'¨Ô4°t´|ÀCÔ7HÈÔ7UÑUÐY\Ñ\Õ_fÑfˆFð ˜œ Ô*Ò*Ð*Ø%+�”˜Ñ"Ø"%�”˜‘Ý#/°°TÑ#:Ô#:�”˜Ñ ùå•2”8ÒÐØœ<ˆDŒLàŒ8�HÔ Ò$Ð$Ø" d¤j°¡l°D´H¸VÔ4DÀQÀtÄzÐRSÁ|À^Ô4TÕV\Ð]aÔ]eÐfnÔ]oÐqtÐvwÐy|ÑV}ÔV}Ð%~Ñ~ˆDŒKˆKˆKð %Ð$s   «AA3Á3
BÁ?	BÂ
Bc                 ó<   — d| j         d         | j         d         fz  S )Nz	%s / %.4fr   r   )r&   r   s    r   Úshowcsvzdstat_plugin.showcsvD   s    € Ø˜dœh vÔ.°´¸Ô0BÐCÑCÐCr   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r5   r7   © r   r   r   r      sf   € € € € € ðð ðð ð ðkð kð kð$ð $ð $ðRDð Dð Dð Dð Dr   r   N)Údstatr   r<   r   r   ú<module>r>      sC   ðð?Dð ?Dð ?Dð ?Dð ?D�5ñ ?Dô ?Dð ?Dð ?Dð ?Dr   