403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.202
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Python315/Lib/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Python315/Lib/__pycache__/pstats.cpython-315.pyc
R
>lqjE�c� �Qs]PHs]PHs]PHs]PHs]PHs]QHGsGs]QH$G
s
]QH,Gs,Q"Ns
\\2QQ22s\P	Q	5Q
Q22s\P	Q	5QQ22sQQ2sQ
Q\2sQQ2sQsQsQsQsQsQsQsQQ2sQs\Q6Xc�]PHxs]PH~sQQ\OB2s"\#\OH2]6�c\OH]*s%LPs%\"\%2s&\OHQ*FDs'\&OQ\'2J	\)Q\&OTQ 5\&OW2\)Q!\&OTQ 5P!P!\ cK�h9h\,cP!h9h)#z3Class for printing reports on profiled python code.)�StrEnum�_simple_enum)�
cmp_to_key)�	dataclass�Stats�SortKey�FunctionProfile�StatsProfilec�L`�\sQs]#snQsQ	sQ
sQsQsQs	Qs
QsQsQs
QsUsP!)r�line�name�nfl�pcalls�stdnamec��U]*o[OV2oV#mUQ*FDoV0OU$J	VmU!)���NN)�str�__new__�_value_�_value2member_map_�_all_values)�cls�values�value�obj�other_values&*   �C:\Python315\\Lib\pstats.pyr�SortKey.__new__/sF���q�	���k�k�#�%����!�"�:�:�K�25�"�"�;�/�&� ���
��)�calls�ncalls)�
cumulative�cumtime)�filename�module)�time�tottime)�__name__�
__module__�__qualname__�__firstlineno__�CALLS�
CUMULATIVE�FILENAME�LINE�NAME�NFL�PCALLS�STDNAME�TIMEr�__static_attributes__�__classdictcell__��
__classdict__s@rrr#s<�����E�(�J�#�H��D��D�
�C�
�F��G��D��r)�unsafe_hashc�.`�\sQs]9snU1QksQsUsP!)rc�p:�U]6�cPg-RZ9Q$RZ9Q$RZ9Q$RZ9Q$RZ9Q$RZ9Q$RZ9Q$!)�r"r(�percall_tottimer$�percall_cumtime�	file_name�line_number)r�float�int)�formatr9s"�r�__annotate__�FunctionProfile.__annotate__9sZ�����K���N����	�
�N����
��N����rr )r)r*r+r,�__annotate_func__r6r7r8s@rrr9s����rc�2`�\sQs]CsnQsU1QksQsUsP!)rz0Class for keeping track of an item in inventory.c�J:�U]6�cPg-RZ9Q$RZRZRZ1*9Q$!)r=�total_tt�
func_profiles)rB�dictrr)rDr9s"�rrE�StatsProfile.__annotate__Cs(�����O����_�,�-�-�	rr )r)r*r+r,�__doc__rGr6r7r8s@rrrCs����:��rc��`�\sQs]IsnQsQP-QksQsQsQsQs	Qs
Q	Q'Q
Q'QQ(QQ(Q
Q)QQ*QQ)QQ+QQ,QQ-QQ.QQ/QQ/-
sQsQs
QsQsQsQsQsQsQsQsQ sQ!sQ"sQ0Q#ksQ$sQ%sQ&sUsP!)1rawThis class is used for creating reports from data generated by the
Profile class.  It is a "friend" of that class, and imports data either
by direct access to members of Profile class, or by reading in a dictionary
that was emitted (via marshal) from the Profile class.

The big change from the previous Profiler (in terms of raw functionality)
is that an "add()" method has been provided to combine Stats from
several distinct profile runs.  Both the constructor and the add()
method now take arbitrarily many file names as arguments.

All the print methods now take an argument that indicates how many lines
to print.  If the arg is a floating-point number between 0 and 1.0, then
it is taken as a decimal percentage of the available lines to be printed
(e.g., .1 means print 10% of all available lines).  If it is an integer,
it is taken to mean the number of lines of data that you wish to have
printed.

The sort_stats() method now processes some additional options (i.e., in
addition to the old -1, 0, 1, or 2 that are respectively interpreted as
'stdname', 'calls', 'time', and 'cumulative').  It takes either an
arbitrary number of quoted strings or SortKey enum to select the sort
order.

For example sort_stats('time', 'name') or sort_stats(SortKey.TIME,
SortKey.NAME) sorts on the major key of 'internal function time', and on
the minor key of 'the name of the function'.  Look at the two tables in
sort_stats() and get_sort_arg_defs(self) for more examples.

All methods return self, so you can string together commands like:
    Stats('foo', 'goo').strip_dirs().sort_stats('calls').                            print_stats(5).print_callers(5)
�streamc���S9%f[OUm[U2%fPoLU]*oUQ*oUO	U2UO
UP!)Nr)�sys�stdoutrP�len�init�add)�selfrP�args�args&$* r�__init__�Stats.__init__ksK���*�*��
�
����4�y�y��C��q�'�C���8�D��	�	�#�����$�rc��PUm,UmPUm]Um]Um]Um]Um[2Um-Um	-Um
UOU2UO2P![cF[QSO%cSOP*LP*SOQ5gh9h)NzInvalid timing data %s��file)�all_callees�files�fcn_listrJ�total_calls�
prim_calls�max_name_len�set�	top_level�stats�
sort_arg_dict�
load_stats�get_top_level_stats�	Exception�printrP)rWrYs&&rrU�
Stats.initus��������
���
���
����������������
���������	��$�$�&���	��*�%)�Z�Z�Z�4�:�:�b�>�R�9�?C�{�{�
L��	�s�"A4�4	C�>C�-Cc��Ue
-UmP![U[2%c�[UQ29^tt^2o[O
U2oPPP2QW7cUO
Q2[UmV0m[OU2o[OUO2Q*U*oU,UmL<[UQ2%c+UO!2UOUm-UmP!UO%f[#QUO8QU802gP!)%fhK�9hK�9h)N�rb�    �create_statszCannot create or construct a z
 object from ��__sampled__)rg�
isinstancer�open�marshal�load�pop�SampledStats�	__class__�os�statr'�ctime�st_mtimer`�hasattrrq�	TypeError)rWrY�frg�
file_statss&&   rri�Stats.load_stats�s����;��D�J��
��S�
!�
!��c�4���A����Q���!� �U�*��	�	�+�-�!-����J�
��W�W�S�\�
��j�j��!4�!4�5��>��D����D�J�
�S�.�
)�
)��������D�J��C�I���z�z�z��#�~�~�s�4�5�
5��)!���
��s�D<�AE�<E	�E	�Ec��UOO2FD�vovq#qEoU9OU*
tmU9OU*
tmU9OU*
tmQU7cUO
O
U2[[U22UO6�fJ�[[U22Um	J�	P!)�jprofile)r�r�profiler)
rg�itemsrbrcrJrfrVrT�func_std_stringrd)rW�func�cc�nc�tt�ct�callerss&      rrj�Stats.get_top_level_stats�s���/3�z�z�/?�/?�/A�+�D�+�2�2�7�����"���O�O��"�O��M�M��"�M�*�g�5����"�"�4�(��?�4�(�)�D�,=�,=�=�$'���(=�$>��!�0Brc	�8�U%fU![U2FCD}o[U2[U26wc[U2oU9OUO*
tmU9OUO*
tmU9O
UO
*
tmU9OUO*
tmUOFDoUOOU2J 	UOUO6cUOUm	PUm
UOO2FDHvq4V0O7cUOU*oL]]]]-1o[VT2UOU$JJ	CJ�	U!�N)�reversed�typerr`rbrcrJrfrVrdrargr��add_func_stats)rW�arg_list�itemr�r|�
old_func_stats&*    rrV�	Stats.add�s(����K��X�&�&�D��D�z�T�$�Z�'��T�{���J�J�$�*�*�$�J����� 0� 0�0���O�O�t���.�O��M�M�T�]�]�*�M��������"�"�4�(�'�� � �4�#4�#4�4�$(�$5�$5��!� �D�M�"�j�j�.�.�0�
���:�:�%�$(�J�J�t�$4�M�%&��1�a��$5�M�#1�-�#F��
�
�4� �1�'�*�rc��[UQ29^tt^2o[OUOU2PPP2P!)%fhP!9h)z:Write the profile data to a file we know how to load back.�wb)rurv�dumprg)rWr%r�s&& r�
dump_stats�Stats.dump_stats�s2��
�(�D�
!�
!�Q��L�L����Q�'�"�
!�
!�
!�s�"A�A	�A	r!r"r$r#r%r
r&rrr
rr'r(c��UO%f]-9Umo-oUOO2FD&vq4SoU%fJVQ7c]V%$JVAU$UPPoJ!	SFDoVJ	UO!)z)Expand all abbreviations that are unique.)rh�sort_arg_dict_defaultr�)rWrL�bad_list�word�tup�fragments&     r�get_sort_arg_defs�Stats.get_sort_arg_defs�s����!�!�!�(*�*�D����H�!�7�7�=�=�?�	�����h��'�-.��*��%(��N�'���}�H�@�!���J�!��!�!�!rc���U%f
]UmU![U2]6Xc8[U]*[2%cPQ]Q]Q]Q-U]**,oLL[U2]6�c=UQ*FD.o[	U2[	U]*26wfJ%[Q2g	UO
2oQ	oPUmPoSFDjo[U[2%c
UOoVCU*]**oU9OVSU*]***
tmQoJl	,oUOO2FD6vovq�q�o
UOV�V�1U*[U2U1*2J8	UO[[!U2O"2Q5,9UmoSFDoUOUP*2J	U!)
rrr!r'r#rzCan't have mixed argument typez, )�keyr )rarTrtrCr�r�r��	sort_typerrrgr��appendr��sortr�	TupleComp�compare)rW�fieldrY�
sort_arg_defs�
sort_tuple�	connectorr��
stats_listr�r�r�r�r�r�ra�tuples&*              r�
sort_stats�Stats.sort_stats�s�����D�M��K��u�:��?�z�%��(�C�8�8��9��7��6��<�)�*/�q��3�5�E���Z�1�_��R�y�y����9��U�1�X��.�#�$D�E�E�!��.�.�0�
��
�����	��D��$��(�(��z�z��#�D�&9�!�&<�<�J��N�N�i��*=�a�*@�@�@�N��I���
�/3�z�z�/?�/?�/A�+�D�+�2�2�7����r�r�.��5�.�t�4�d�;�<�
=�0B�	���J�y��'<�'D�'D�E��F�#%�%��
���E��O�O�E�"�I�&� ��rc�`�UO%cUOO2U!r�)ra�reverse�rWs&r�
reverse_order�Stats.reverse_orders ���=�=�=��M�M�!�!�#��rc
�,�UOo-9Umo]oUO2FD�vovqVqxo	[U2o
[[	U
22U6�c[[	U
22o-oU	O2FDvq�V�[U2$J	V�7c[V**VVVxU12V*$J�VVVxU1V*$J�	UOo[29UmoSFDoUO[U22J	V0m	PUm
PUmU!�r)rgr��func_strip_pathrTr�r�rfrerVrdrar_)rW�oldstats�newstatsrdr�r�r�r�r�r��newfunc�
newcallers�func2�caller�old_top�new_tops&               r�
strip_dirs�Stats.strip_dirss���:�:�� "�"��
�X���/7�~�~�/?�+�D�+�2�2�7�%�d�+�G��?�7�+�,�|�;�"�?�7�#;�<���J�!(����
��5;�?�5�1�2�"1��"�$2�(0�(9�)+���(D�%F��!�&(�R�Z�$@��!�0@��.�.��#&�5�(�����D��K�K���-�.��)����
�����rc��UO%cP!-9UmoUOO2FDCvovq4qVoV!7f-V$UO2FDvq�V�7f-V$V�U*U$J	JE	P!r�)r_rgr�)
rWr_r�r�r�r�r�r�r�r�s
&         r�calc_callees�Stats.calc_callees8s��������)+�+���;�/3�z�z�/?�/?�/A�+�D�+�2�2�7��&�$&��!�!(����
���+�)+�K�&�,2�E�"�4�(�"1�0B�	rc���So[U[2%cX[OU2o,oSFD6oUO[
U22%fJ%UOU2J8	L�[U2o[U[2%c1QSt96:cQ6c"LL[Vq*Q*2oUPUoL/[U[2%c]St96:cU6cLLSoUPUo[U2[U26wc)UQ[U28Q[U28QU8Q0*
oVC1![OcSQS**
oXC1t!h9h)z#   <Invalid regular expression %r>
gg�?g�?z   List reduced from z to z due to restriction <z>
)rtr�re�compile�PatternError�searchr�r�rTrBrC)rW�sel�list�msg�new_list�rexr��counts&&&&    r�eval_print_amount�Stats.eval_print_amountKs%�����c�3���
%��j�j��o���H����:�:�o�d�3�4�4��O�O�D�)����I�E��#�u�%�%�#��*:�s�*:��E�K�"�,�-�����<���C��%�%�!�s�*:�U�*:������<���t�9��H�
�%���D�	�3�x�=�#�/�
/�C��}���'�?�?�
%��=��C�C���}�$�
%�s�D5�5E �	E �E c���UO%cUOQ*L"[UOO22oU%f
[	]-2![[
UO22o-o[	V#2oSFD�oUOU*vqgq�o
Uvq�o
Vv6Xc[U2L![U2Q*[U2*o[[
U22oU]6XcPL[[
V�*22o[[
U	22oU]6XcPL[[
V�*22o[UUUUUUU2oUV=$J�	U!)aThis method returns an instance of StatsProfile, which contains a mapping
of function names to instances of FunctionProfile. Each FunctionProfile
instance holds information related to the function's profile such as how
long the function took to run, how many times it was called, etc...
�NNN�/)
rar�rg�keysrrB�f8rJrr)rW�	func_listrJrK�
stats_profiler�r�r�r�r�r�r@rA�	func_namer"r(r>r$r?�func_profiles&                   r�get_stats_profile�Stats.get_stats_profilees"��)-�
�
�
�D�M�M�!�$�4��
�
���@Q�;R�	����2�&�&���D�M�M�*�+���
�$�X�=�
��D�&*�j�j��&6�#�B�B�G�04�-�I�I� "��S��W�s�2�w��}�s�2�w�/F�F��B�r�F�m�G�$&�!�G�b��r�"�%�y�1A�O��B�r�F�m�G�$&�!�G�b��r�"�%�y�1A�O�*���������L�(4�M�$�#�&�rc�<�UOoUO%c/UOQ*oQUO*Q*oL%[UOO22oQoSFDoUO
VSU2vq4J	[U2oU%f]U1![V@OQ5U[UO26c<]oSFD2o[[U22U6�fJ[[U22oJ4	U]*U1!)r�z   Ordered by: �
z!   Random listing order was used
r])rdrar�r�rgr�r�rTrlrPr�)rW�sel_list�width�	stat_listr��	selectionr�r�s&&      r�get_print_list�Stats.get_print_list�s����!�!���=�=�=��
�
�a�(�I�#�d�n�n�4�t�;�C��T�Z�Z�_�_�.�/�I�6�C�!�I�!�3�3�I�#�N�N�I�s�"��I�����i�<��
�c���$��3�t�z�z�?�"��E�!�����-�.��6���� 5�6�E�"��Q�w�	�!�!rc�H�UOFDo[V OQ5J	UO%c[UOQ5QoUOFD$o[U[	U2UOQ5J&	[V0O
QQUOQ5UO
UO6wc*[QUO*QUOQ5[QUO*UOQ5[UOQ5UOU2vqVU%cXUO2SFDoUOU2J	[UOQ5[UOQ5U!)r]� zfunction calls��endr^z(%d primitive calls)zin %.3f seconds�        )r`rlrPrf�func_get_function_namerbrcrJr��print_title�
print_line)rW�amountr%�indentr�r�r�s&*     r�print_stats�Stats.print_stats�s���
�
�H��(���-�#��:�:�:��t�{�{�#����N�N�D��&�0��6�T�[�[�I�#�	�f�&�&�(8�c����T����t���.��(�4�?�?�:��$�+�+�V�
��$�-�-�/�d�k�k�B�
�4�;�;���)�)�&�1��������������%���t�{�{�#��t�{�{�#��rc�|�UOU2vq#U%c�UO2UOUQ2SFDJoV@O7c&UO	V$UOU*2J8UO	V$-2JL	[UOQ5[UOQ5U!)z	called...r])r�r��print_call_headingr_�print_call_linerlrP)rWr�r�r�r�s&*   r�
print_callees�Stats.print_callees�s����)�)�&�1���������#�#�E�;�7����+�+�+��(�(��d�6F�6F�t�6L�M��(�(��b�9�	�

�t�{�{�#��t�{�{�#��rc�"�UOU2vq#U%csUOUQ2SFD-oUOU*vqVqxo	UOV$U	Q2J/	[	UO
Q5[	UO
Q5U!)zwas called by...z<-r])r�r�rgr�rlrP)
rWr�r�r�r�r�r�r�r�r�s
&*        r�
print_callers�Stats.print_callers�sx���)�)�&�1�����#�#�E�+=�>���*.�*�*�T�*:�'�����$�$�U�'�4�@��
�t�{�{�#��t�{�{�#��rc�b�[QOU2U*UOQ5P
oUOO	2FDDvqEqgoU%fJ[[
UO	222o	[U	[2oL	U%cUOU2P!P!)z	Function r])
rl�ljustrPrgr�next�iterrtr��print_call_subheading)
rW�	name_size�column_title�	subheaderr�r�r�r�r�rs
&&&       rr��Stats.print_call_heading�s���
�k���	�*�\�9����L��	�'+�z�z�'8�'8�':�#�B�B�G��w��T�'�.�.�"2�3�4��&�u�e�4�	��	(;�
��&�&�y�1�rc�R�[QU*Q*UOQ5P!)r�z    ncalls  tottime  cumtimer]�rlrP�rWrs&&rr�Stats.print_call_subheading�s��
�c�)�m�<�<�4�;�;�Orc
���[[U2OU2U*QUOQ5U%f[UOQ5P![	UO22oPoSFD�o[U2oV7*o	[
U	[2%ctU	vq�q�V�6wcQV�1*oL
QU
1*oUO]][U2**28Q[U28Q[U
28QU80oU]*oL7U8QU	8Q[UOU*]*280oU]*o[Vo*U*UOQ5QoJ�	P!)r�r�r]z%d/%dz%dz  �(z) )rlr�r�rP�sortedr�rtr��rjustrTr�rg)rWr�source�	call_dict�arrow�clistr�r�rrr�r�r�r��substats�
left_widths&&&&&           rr��Stats.print_call_line�s��
�o�f�%�+�+�I�6��>�C�d�k�k�Z���t�{�{�#���y�~�~�'�(�����D�"�4�(�D��O�E��%��'�'�!&�����8�&�"��1�H�#�r�e�|�H�-5�^�^�A�a��F��m�O�-L�-/��V�R��V�T�C��&��]�
�*.��r�$�*�*�T�:J�1�:M�7N�O��&��]�
��&�#�h�.�T�[�[�A��F�!rc�f�[QQUOQ5[QUOQ5P!)z-   ncalls  tottime  percall  cumtime  percallr�r��filename:lineno(function)r]rr�s&rr��Stats.print_title�s"��
�=�3�T�[�[�Y�
�)����<rc��UOU*vq#qEo[U2oV26wcUQ*[U2*o[UO]	2QUOQ5[[U2QUOQ5U]6Xc[QQUOQ5L'[[VC*2QUOQ5[[U2QUOQ5U]6Xc[QQUOQ5L'[[VR*2QUOQ5[[
U2UOQ5P!)r�r�r�r]r�)rgrrlrrPr�r�)rWr�r�r�r�r�r��cs&&      rr��Stats.print_line�s���"&�*�*�T�"2�������G��
�8��C��#�b�'�!�A�
�a�g�g�a�j�c����4�
�b��f�#�D�K�K�0�
��7��%�S�t�{�{�3��"�R�U�)��4�;�;�7�
�b��f�#�D�K�K�0�
��7��%�S�t�{�{�3��"�R�U�)��4�;�;�7�
�o�d�#�$�+�+�6r)
rzr_rar`rdrcrhr�rgrPrfrbrJ)�)r���z
call count�))�rzcumulative time�)��rz	file name�)��rzline number�)��rz
function name�)r'r!r$zname/file/line�))rrzprimitive call count�))�rz
standard name�))r=rz
internal time)z->)r)r*r+r,rNrZrUrirjrVr�r�r�r�r�r�r�r�r�r�r�r�r�r�rr�r�r�r6r7r8s@rrrIs������B�T���&�6?��4(��C��C��H��H��B��D��B��F��G��M��F��F��F��� "�"%�N�
�:�&�4!�F"�0�.
�	�
2�P��2=�7�7rc�H``�\sQsQsnQP-U1QkksQsQsQsUsU9s	!)ry�rPc�n:�[RU_UQU-QQQQQQQQQQQQQQQQQ	QQ
QQQQQQ
Q-
UmP!)rP�samples�nsamplesr$r#r%r
r&rr�psamplesrr'r()rzsample countrr r#r&r)r*r+r-)�superrZrh)rWrPrXrzs&$*�rrZ�SampledStats.__init__so���
���$�.�v�.��E��E��H��H��B��D��B��F��G��M��F��F��F���rc�R�[QU*Q*UOQ5P!)r�z    nsamples  tottime  cumtimer]rr	s&&rr�"SampledStats.print_call_subheading$s��
�c�)�m�>�>�T�[�[�Qrc�f�[QQUOQ5[QUOQ5P!)z. nsamples  tottime persample cumtime persampler�r�rr]rr�s&rr��SampledStats.print_title's"��
�>�C�d�k�k�Z�
�)����<r)rh)
r)r*r+r,rZrr�r6r7�
__classcell__)rzr9s@@rryrys!�����T��&R�=�=rryc�2`�\sQsQsnQsQsQsQsUsP!)r��,a�This class provides a generic function for comparing any two tuples.
Each instance records a list of tuple-indices (from most significant
to least significant), and sort direction (ascending or descending) for
each tuple-index.  The compare functions can then be used as the function
argument to the system sort() function when a list of tuples need to be
sorted in the instances order.c��VmP!r���comp_select_list)rWr?s&&rrZ�TupleComp.__init__4s�� 0�rc��UOFD,vq4V*oV#*oVV6cU't!VV6�fJ)Ut!	]!r�r>)rW�left�right�index�	direction�l�rs&&&    rr��TupleComp.compare7s@�� $� 5� 5��E���A���A��u�!�z�!��u� � �
!6�rr>)	r)r*r+r,rNrZr�r6r7r8s@rr�r�,s����&�1��rr�c�P�Uvqo[OOU2V#1!r�)r{�path�basename)r�r%r
rs&   rr�r�Es&��$��H�D�
�7�7���H�%�t�1�1rc��U]*!)r=r )r�s&rr�r�Is����7�Nrc��UQ*Q6XcFU]*oUOQ2%c$UOQ2%c
QU]P*!U!QU*!):Nr=N�<�>z{%s}z	%s:%d(%s))�~r)�
startswith�endswith)r�rs& rr�r�LsU����}�� ���|���?�?�3���D�M�M�#�$6�$6��D��2�J�&�&��K��Y�&�&rc�l�Uvq#qEoUvqxq�oV'*V8*VI*VZ*[V�21!)z3Add together all the stats for two profile entries.)�add_callers)�targetrr�r�r�r�r��t_cc�t_nc�t_tt�t_ct�	t_callerss&&          rr�r�]s=��$��B�B�G�(.�%�D��I��G�R�W�b�g�r�w��)�-�/�/rc
��-oUO2FD	vq4VBU$J	UO2FD�vq4V27c|[U[2%cP[9PIc$,Q[VBU*22DMJ	3LQ[VBU*222V#$JpV#99*U*
tt$J�VBU$J�	U!)z*Combine two caller lists in a single list.c3�B�SF �DvqV*w�	J	P!3hr�r )�.0�i�js&  r�	<genexpr>�add_callers.<locals>.<genexpr>ms��<Z���<Z�D�A�!�%�%�<Z�s�)r�rtr��zip)rUr�new_callersr�r�s&&   rrTrTds����K�������"�D��'����������&�%�(�(�$)�E�)[�C��TX�HY�<Z�)[�E�E�)[�C��TX�HY�<Z�)[�$[��!��!�V�+�!� &���'��rc�L�]oUO2FDoV*
oJ
	U!)z@Sum the caller statistics to get total number of calls received.)r)r�r�r!s&  r�count_callsreus$��	
�B����!��
���"�
�Irc��QU*!)z%8.3fr )�xs&rr�r��s���Q�;�rc�2`�\sQsQsnQsQsQsQsUsP!)�StatsLoaderShim�zkCompatibility shim implementing 'create_stats' needed by Stats classes
to handle already unmarshalled data.c��VmP!r��rg)rW�	raw_statss&&rrZ�StatsLoaderShim.__init__�s���
rc��P!r�r r�s&rrq�StatsLoaderShim.create_stats�s��rrl)	r)r*r+r,rNrZrqr6r7r8s@rriri�s����,��
�
rric��QU7c1[U2oUOQ2[[U22![	[U22!)zIReturn a Stats or SampledStats instance based on the marker in raw_stats.rr)rLrxryrir)rms&r�
stats_factoryrr�s@���Y�&���O�	��
�
�'�)��O�I�6�7�7��_�Y�/�0�0r�__main__c��`�\sQsQsnQQksQsQsQsQsQs	Qs
Q	sQ
sQs
QsQ
sQsQsQsQsQsQsQsQsQsQsQsQsQsQsQsUsP!)�ProfileBrowser�c��[OOU2QUmPUm[
OUmUdUOU2P!P!)�% )	�cmd�CmdrZ�promptrgrRrSrP�do_read)rW�profiles&&rrZ�ProfileBrowser.__init__�sD���G�G���T�"��D�K��D�J��*�*�D�K��"����W�%�#rc��UO2o,oSFDoUO[U22J 	UO%c[UOU2U]![QUOQ5]![cLh9h[	S2oS]6�fS]6c[QSOQ5J�SOS2J�[cLh9hSOS2J�)rz#Fraction argument must be in [0, 1]r]�No statistics object is loaded.)	�splitr�rC�
ValueErrorrBrlrPrg�getattr)rW�fnr
rX�	processed�term�fracs&&&    r�generic�ProfileBrowser.generic�s����:�:�<�D��I�����$�$�S��Y�/��� �z�z�z���
�
�B�'��3���7�d�k�k�J���!"������ ��;�D��a�x�4�!�8��C�$�+�+�V� ��$�$�T�*���!������ � ��&sA�B�	B�B�B�C�%C�,C�C�	C&�"C&�%C&c��[QUOQ5[QUOQ5[QUOQ5[QUOQ5[QUOQ5[QUOQ5P!)zArguments may be:r]z0* An integer maximum number of entries to print.z:* A decimal fractional number between 0 and 1, controllingz-  what fraction of selected entries to print.z8* A regular expression; only entries with function namesz  that match it are printed.rr�s&r�generic_help�ProfileBrowser.generic_help�sb���%�D�K�K�8��D�4�;�;�W��N�UY�U`�U`�a��A����T��L�SW�S^�S^�_��0�t�{�{�Crc��UO%cUOOU2]![QUOQ5]![c+o[QS8QS80SOQ5Po=]!Po=hh9h)zFailed to load statistics for z: r]r�)rgrV�OSErrorrlrP)rWr
�es&& r�do_add�ProfileBrowser.do_add�sl���z�z�z�`��J�J�N�N�4�(�
��7�d�k�k�J���	�`��D�!�L�SW�S^�S^�_�_���	`�s�A�	B�B�A;�;Bc�6�[QUOQ5P!)z>Add profile info from given file to current statistics object.r]rr�s&r�help_add�ProfileBrowser.help_add�s���R�Y]�Yd�Yd�erc�(�UOQU2!)r��r��rWr
s&&r�
do_callees�ProfileBrowser.do_callees�����<�<���6�6rc�V�[QUOQ5UO2P!)z6Print callees statistics from the current stat object.r]�rlrPr�r�s&r�help_callees�ProfileBrowser.help_callees�� ���J�QU�Q\�Q\�]����rc�(�UOQU2!)r�r�r�s&&r�
do_callers�ProfileBrowser.do_callers�r�rc�V�[QUOQ5UO2P!)z6Print callers statistics from the current stat object.r]r�r�s&r�help_callers�ProfileBrowser.help_callers�r�rc�6�[PUOQ5]!)�r]rr�s&&r�do_EOF�ProfileBrowser.do_EOF�s���"�4�;�;�'�rc�6�[QUOQ5P!�zLeave the profile browser.r]rr�s&r�help_EOF�ProfileBrowser.help_EOF�����.�T�[�[�Arc��]!)rr r�s&&r�do_quit�ProfileBrowser.do_quit�s��rc�6�[QUOQ5P!r�rr�s&r�	help_quit�ProfileBrowser.help_quit�r�rc�n�U%c�[UQ29^tt^2o[OU2oPPP2[W2Um[
OU2o[OUO2Q*U*oU,UOmUQ*Um]!['UO$2]6�c#UO$PQoUO)U2]![QUOQ5]!)%fhK�9h[cSoK�h9h[c4o[SO]*SOQ5Po=P!Po=h[c>o[SO O"Q*X`OQ5Po=P!Po=hh9h)rorpr]�:rxz1No statistics object is current -- cannot reload.���)rurvrwrrrgr{r|r'r}r~rkr`r�rlrXrPrzr)r{rTr|)rWr
r�rmr�rY�errs&&     rr|�ProfileBrowser.do_read�sE�����d�D�)�)�Q�$+�L�L��O�	�*�!.�y�!9�D�J�#�%'�W�W�T�]�
�"�j�j��)<�)<�=��F��M��),�u�D�J�J�$�#�T�k�����T�[�[�!�A�%��{�{�3�B�'�����T�"���I�PT�P[�P[�\��+*�)��%�#�"��#�����#�(�(�1�+�D�K�K�8��� ���#�-�-�0�0�3�6��+�+�N����sv�D0�D
�D0�AD�D0�
D	�D	�D0�	D-�'D-�*D0�,D-�-D0�0	F4�:F4�;(E)�)F4�6F4�72F/�/F4c�d�[QUOQ5[QUOQ5P!)z+Read in profile data from a specified file.r]z*Without argument, reload the current file.rr�s&r�	help_read�ProfileBrowser.help_reads ���?�d�k�k�R��>�T�[�[�Qrc��UO%cUOO2]![QUOQ5]!�r�r])rgr�rlrPr�s&&r�
do_reverse�ProfileBrowser.do_reverse	s4���z�z�z��
�
�(�(�*���7�d�k�k�J�rc�6�[QUOQ5P!)z/Reverse the sort order of the profiling report.r]rr�s&r�help_reverse�ProfileBrowser.help_reverses���C�$�+�+�Vrc�x`�UO%f[QUOQ5P!UOO2nU%c�[9PIc-U1QkUO22D%cJP
L!	P	LU1QkUO222%c,UOOUO2]![QUOQ5[OO2FD*vq#[U8QU]*80UOQ5J,	]!)r�r]c3�8:�SF �D
pR7w�	J	P!3hr�r )r]rg�abbrevss& �rr`�)ProfileBrowser.do_sort.<locals>.<genexpr>s��L���L�q�'�\�L�s�z/Valid sort keys (unique prefixes are accepted):z -- )
rgrlrPr��allr�r�rr�r�)rWr
r�rr�s&&  @r�do_sort�ProfileBrowser.do_sorts�����:�:�:��7�d�k�k�J���j�j�2�2�4�G����A�D�J�J�L�A����A�D�J�J�L�A�A�A��
�
�%�%�t�z�z�|�4�
��G�d�k�k�Z�$)�$?�$?�$E�$E�$G�L�S���U�1�X�6�T�[�[�I�%H�rc�d�[QUOQ5[QUOQ5P!)z.Sort profile data according to specified keys.r]z3(Typing `sort' without arguments lists valid keys.)rr�s&r�	help_sort�ProfileBrowser.help_sorts ���B����U��G�d�k�k�Zrc��[OTt,tFDp3OU2%fJUMJ	to!ttohr�)rr�rQ)rW�textrX�as&&* r�
complete_sort�ProfileBrowser.complete_sort!s-��$�:�:�Q�:�!�l�l�4�>P�A�A�:�Q�Q��Qs�;�;c�(�UOQU2!)r�r�r�s&&r�do_stats�ProfileBrowser.do_stats$s���<�<�
�t�4�4rc�V�[QUOQ5UO2P!)z.Print statistics from the current stat object.r]r�r�s&r�
help_stats�ProfileBrowser.help_stats&s���B����U����rc��UO%cUOO2P![QUOQ5P!r�)rgr�rlrPr�s&&r�do_strip�ProfileBrowser.do_strip*s*���z�z�z��
�
�%�%�'��7�d�k�k�Jrc�6�[QUOQ5P!)z<Strip leading path information from filenames in the report.r]rr�s&r�
help_strip�ProfileBrowser.help_strip/s���P�W[�Wb�Wb�crc�6�[QUOQ5P!)zShow help for a given command.r]rr�s&r�	help_help�ProfileBrowser.help_help2s���2����Erc��U%cU!P!r�r )rW�stopr
s&&&r�postcmd�ProfileBrowser.postcmd5s
�����r)r{rgrPr�) r)r*r+r,rZr�r�r�r�r�r�r�r�r�r�r�r�r|r�r�r�r�r�r�r�r�r�r�r�r�r6r7r8s@rruru�s�����	&�	�0	D�	�	f�	7�	 �	7�	 �	�	B�	�	B�	�2	R�	�	W�	�	[�	R�	5�	 �	K�
	d�	F�	�	rru:r=NNz*Welcome to the profile statistics browser.r]zGoodbye.)rrrr)-rNrRr{r'rvr��enumrr�	functoolsr�dataclassesr�__all__rrrrryr�r�r�r�r�rTrer�rirrr)ry�readline�ImportErrorrzrurT�argv�initprofile�browserr}r�rlrP�cmdloop�KeyboardInterruptr rr�<module>r�s���9�,�	���	�&� �!�
A��
�g������*�t�������t��.�.��.�
D7�D7�N=�5�=�8��22��	'�"/��"��
�
�1��z���
��X����X�t�3�8�8�}�q���h�h�q�k����
� ��-���x�x��|�|�G��N�N�7�#�$�
�:����P�����
�j�w�~�~�.�W���
��
��P�
��
�s1�>E5�A,F�5E?�;E?�>E?�F
�F
�F


Youez - 2016 - github.com/yon3zu
LinuXploit