%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python2.7/site-packages/salt/output/
Upload File :
Create Path :
Current File : //lib/python2.7/site-packages/salt/output/profile.pyc

�
���^c@@s\dZddlmZmZmZddljjZdZd�Z	dd�Z
d�ZdS(	u�
Display profiling data in a table format
========================================

Show profile data for returners that would normally show a highstate output.

    salt MINION state.apply something --out=profile

Attempt to output the returns of state.sls and state.highstate as a table of
names, modules and durations that looks somewhat like the following::

    name                mod.fun                duration (ms)
    --------------------------------------------------------
    I-fail-unless-stmt  other.function               -1.0000
    old-minion-config   grains.list_present           1.1200
    salt-data           group.present                48.3800
    /etc/salt/minion    file.managed                 63.1450


To get the above appearance, use settings something like these::

    out.table.separate_rows: False
    out.table.justify: left
    out.table.delim: '  '
    out.table.prefix: ''
    out.table.suffix: ''
i(tabsolute_importtprint_functiontunicode_literalsNuprofilecC@stS(N(tTrue(((s7/usr/lib/python2.7/site-packages/salt/output/profile.pyt__virtual__#si<cC@s�g}td�}x|D]}x	||D]�}|||}|jd�}|d}|d}	|jd|jd��}
t|||jdd��}|
dkr�d}
nt|
�|kr�|
d|d	!d
}
ntdj|��}||kr|}n|j||
dj||	�g�q*WqWx+|D]#}
d
j|
dd|�|
d<q6Wgt|�D]}|d|dd!^qjS(Nu
duration (ms)u_|-ii����unameu__id__udurationu<>iu...u{0:0.4f}u{0}.{1}u
{0:{w}.4f}twi(tlentsplittgettfloattNonetformattappendtsorted(tdatatname_maxtrettmlthosttsidtdatttstmodtfuntnametdurtltrowtx((s7/usr/lib/python2.7/site-packages/salt/output/profile.pyt_find_durations's*


 		*
!cK@sWt|�}t|d<d|d<d|d<idddgd6|d6}tj||�S(	u7
    Display the profiling data in a table format.
    uoptsurowsurows_keyulabelsu
labels_keyunameumod.funu
duration (ms)(Rt__opts__t	table_outtoutput(Rtkwargstrowstto_show((s7/usr/lib/python2.7/site-packages/salt/output/profile.pyR Cs



(t__doc__t
__future__RRRtsalt.output.table_outR Rt__virtualname__RR(((s7/usr/lib/python2.7/site-packages/salt/output/profile.pyt<module>s	

Zerion Mini Shell 1.0