§
    uÒ>]  ã                   ó"   —  G d „ de ¦  «        ZdS )c                   ó   — e Zd ZdZd„ Zd„ ZdS )Údstat_plugina(  
    Provide Dstat's number of voluntary and involuntary context switches.

    This plugin provides a unique view of the number of voluntary and
    involuntary context switches of the Dstat process itself. It may help
    to vizualise the performance of Dstat and its selection of plugins.
    c                 óL   — d| _         d| _        d| _        d| _        d| _        d S )Nz	contxt sw)Ú	voluntaryÚinvoluntaryÚtotalÚdé   éd   )ÚnameÚvarsÚtypeÚwidthÚscale)Úselfs    ú$/usr/share/dstat/dstat_dstat_ctxt.pyÚ__init__zdstat_plugin.__init__   s)   € ØˆŒ	Ø9ˆŒ	ØˆŒ	ØˆŒ
ØˆŒ
ˆ
ˆ
ó    c                 óü  — t                                t           j        ¦  «        }t          |j        ¦  «        | j        d<   t          |j        ¦  «        | j        d<   t          |j        ¦  «        t          |j        ¦  «        z   | j        d<   | j        D ]0}| j        |         | j        |         z
  dz  t          z  | j
        |<   Œ1t          t          j        k    r!| j                             | j        ¦  «         d S d S )Nr   r   r   g      ð?)ÚresourceÚ	getrusageÚRUSAGE_SELFÚfloatÚru_nvcswÚset2Ú	ru_nivcswr   Úset1ÚelapsedÚvalÚstepÚopÚdelayÚupdate)r   Úresr   s      r   Úextractzdstat_plugin.extract   s×   € Ý× Ò ¥Ô!5Ñ6Ô6ˆå!& s¤|Ñ!4Ô!4ˆŒ	�+ÑÝ#(¨¬Ñ#7Ô#7ˆŒ	�-Ñ Ý# C¤LÑ1Ô1µE¸#¼-Ñ4HÔ4HÑHˆŒ	�'Ñà”Ið 	Qð 	QˆDØ"œi¨œo°´	¸$´Ñ?À3ÑFÍÑPˆ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>r+      s9   ðð(ð (ð (ð (ð (�5ñ (ô (ð (ð (ð (r   