§
    uÒ>]©  ã                   ó"   —  G d „ de ¦  «        ZdS )c                   ó   — e Zd ZdZd„ Zd„ ZdS )Údstat_plugina²  
    Provide CPU information related to the dstat process.

    This plugin shows the CPU utilization for the dstat process itself,
    including the user-space and system-space (kernel) utilization and
    a total of both. On a system with one cpu and one core, the total
    cputime is 1000ms. On a system with 2 cores the total is 2000ms.
    It may help to vizualise the performance of Dstat and its selection
    of plugins.
    c                 óZ   — d| _         d| _        d| _        d| _        d| _        d| _        d S )Nz	dstat cpu)ÚuserÚsystemÚtotal)ÚusrÚsysÚtotÚpé   éd   )ÚnameÚvarsÚnickÚtypeÚwidthÚscale)Úselfs    ú#/usr/share/dstat/dstat_dstat_cpu.pyÚ__init__zdstat_plugin.__init__   s0   € ØˆŒ	Ø/ˆŒ	Ø)ˆŒ	ØˆŒ	ØˆŒ
ØˆŒ
ˆ
ˆ
ó    c                 ó  — t                                t           j        ¦  «        }t          |j        ¦  «        | j        d<   t          |j        ¦  «        | j        d<   t          |j        ¦  «        t          |j        ¦  «        z   | j        d<   | j        D ]8}| j        |         | j        |         z
  dz  t          z  t          z  | j        |<   Œ9t          t          j        k    r!| j                             | j        ¦  «         d S d S )Nr   r   r   g      Y@)ÚresourceÚ	getrusageÚRUSAGE_SELFÚfloatÚru_utimeÚset2Úru_stimer   Úset1ÚelapsedÚcpunrÚvalÚstepÚopÚdelayÚupdate)r   Úresr   s      r   Úextractzdstat_plugin.extract   sÝ   € Ý× Ò ¥Ô!5Ñ6Ô6ˆå! #¤,Ñ/Ô/ˆŒ	�&ÑÝ# C¤LÑ1Ô1ˆŒ	�(ÑÝ" 3¤<Ñ0Ô0µ5¸¼Ñ3FÔ3FÑFˆŒ	�'Ñà”Ið 	[ð 	[ˆDØ"œi¨œo°´	¸$´Ñ?À5ÑHÍ7ÑRÕUZÑZˆDŒH�T‰NˆNå•2”8ÒÐØŒI×Ò˜TœYÑ'Ô'Ð'Ð'Ð'ð Ðr   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r)   © r   r   r   r      s<   € € € € € ð	ð 	ðð ð ð(ð (ð (ð (ð (r   r   N)Údstatr   r.   r   r   ú<module>r0      s9   ðð(ð (ð (ð (ð (�5ñ (ô (ð (ð (ð (r   