403Webshell
Server IP : 50.21.180.56  /  Your IP : 216.73.216.208
Web Server : Apache
System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User : ws67922704 ( 67922704)
PHP Version : 8.5.13
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /kunden/lib/python3/dist-packages/breezy/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /kunden/lib/python3/dist-packages/breezy/__pycache__/lsprof.cpython-313.pyc
�

p��g,/����%SSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKJrJ	r	 SSK
Jr SSKJ
r
 SS/rSr"S	S
5r"SS5r"SS
5r0r\\\4\S'SSjrSr\S:Xa\"5 gg)�N)�Profiler�profiler_entry)�TextIO�)�errors�Stats�profilec��[5nUR5 U"U0UD6nUR5nXE4$!UR5nf=f)ajRun a function profile.

Exceptions are not caught: If you need stats even when exceptions are to be
raised, pass in a closure that will catch the exceptions and transform them
appropriately for your driver function.

Important caveat: only one profile can execute at a time. See BzrProfiler
for details.

:return: The functions return value and a stats object.
)�BzrProfiler�start�stop)�f�args�kwds�profiler�ret�statss      �//usr/lib/python3/dist-packages/breezy/lsprof.pyr	r	sK���}�H��N�N�� ��������
�
����:����
�
���s	�7�A	c�T�\rSrSrSrSr\R"5rSr	Sr
SrSrg)	r�*a-Bzr utility wrapper around Profiler.

For most uses the module level 'profile()' function will be suitable.
However profiling when a simple wrapped function isn't available may
be easier to accomplish using this class.

To use it, create a BzrProfiler and call start() on it. Some arbitrary
time later call stop() to stop profiling and retrieve the statistics
from the code executed in the interim.

Note that profiling involves a threading.Lock around the actual profiling.
This is needed because profiling involves global manipulation of the python
interpreter state. As such you cannot perform multiple profiles at once.
Trying to do so will lock out the second profiler unless the global
breezy.lsprof.BzrProfiler.profiler_block is set to 0. Setting it to 0 will
cause profiling to fail rather than blocking.
rc��0Ul[5UlURRRURR5nU(d[R"SS9eURRSS9 [R"UR5 g![a& URRR5 ef=f)zcStart profiling.

This hooks into threading and will record all calls made until
stop() is called.
zAlready profiling something)�msgT)�subcallsN)�_g_threadmapr�p�	__class__�
profiler_lock�acquire�profiler_blockr�InternalBzrError�enable�	threading�
setprofile�_thread_profile�
BaseException�release)�self�	permitteds  rr�BzrProfiler.startCs�����������N�N�0�0�8�8����9V�9V�W�	���)�)�.K�L�L�	��F�F�M�M�4�M�(�� � ��!5�!5�6���	��N�N�(�(�0�0�2��	�s�,9B&�&0Cc�J�URR5 URR5HnUR5 M [R
"S5 URnSUl0nURR
5H!upA[UR505X4'M# SUl[UR5U5URRR5 $!URRR5 f=f)z�Stop profiling.

This unhooks from threading and cleans up the profiler, returning
the gathered Stats object.

:return: A breezy.lsprof.Stats object.
N)r�disabler�valuesr"r#�itemsr�getstatsrrr&)r'�ppr�threads�tids     rr
�BzrProfiler.stopUs���
	3��F�F�N�N���'�'�.�.�0���
�
��1�� � ��&����A��D�F��G��,�,�2�2�4���$�R�[�[�]�B�7���5� $�D�������w�/��N�N�(�(�0�0�2��D�N�N�(�(�0�0�2�s�CC<�<&D"c��[R"5n[5=URU'nUR	SSS9 g)NT)r�builtins)�_thread�	get_identrrr!)r'rrr�thrrs      rr$�BzrProfiler._thread_profilels9�����!��%-�Z�/����#���	���$���.�)rrN)
�__name__�
__module__�__qualname__�__firstlineno__�__doc__rr"�Lockrrr
r$�__static_attributes__�r9rrr*s/���$�N�O��N�N�$�M�1��$3�./r9rc�H�\rSrSrSrSrSSjrSSjrSrSr	S
S	jr
S
rg)r�uz�Wrapper around the collected data.

A Stats instance is created when the profiler finishes. Normal
usage is to use save() to write out the data to a file, or pprint()
to write human-readable information to the command line.
c��XlX lg�N��datar0)r'rGr0s   r�__init__�Stats.__init__}s���	��r9c�H�U[R;dUS:Xa[SRU55e[R
"U5nURRX2S9 URH/nUR(dMURRX2S9 M1 g)z^Sort the data by the supplied critera.

:param crit: the data attribute used as the sort key.
�codezCan't sort by {})�key�reverseN)	r�__dict__�
ValueError�format�operator�
attrgetterrG�sort�calls)r'�critrM�key_func�es     rrS�
Stats.sort�sz��
�~�.�.�.�$�&�.��/�6�6�t�<�=�=��&�&�t�,���	�	���8��5����A��w�w�w��������;�r9Nc�l�Uc[RnURnUbUSUnSnSnURUS-5 UH�nURUURUR
URUR[UR54-5 UR(dMjURHunURUSRUR5UR
URURSR[UR554-5 Mw M� g)z�Pretty-print the data as plain text for human consumption.

:param top: only output the top n entries.
    The default value of None means output all data.
:param file: the output file; if None, output will
    default to stdout.
Nz% 12s %12s %11.4f %11.4f   %s
z% 12s %12s %12s %12s %s
)�	CallCount�	Recursivez	Total(ms)z
Inline(ms)zmodule:lineno(function)z+{})�sys�stdoutrG�write�	callcount�reccallcount�	totaltime�
inlinetime�labelrKrTrP)r'�top�file�d�cols�hcolsrW�ses        r�pprint�Stats.pprint�s���<��:�:�D��I�I���?��$�3��A�0��+���
�
���
�		
��A��J�J���K�K��N�N��K�K��L�L��!�&�&�M���	
��w�w�w��'�'�B��J�J��!�L�L����6��O�O��L�L��M�M�!�L�L��r�w�w��8���	�"�r9c��[[UR55GH
nURUn[UR[
5(d8[
U5"[UR54USS-5URU'UR(dM}[[UR55HknURUn[UR[
5(aM3[
U5"[UR54USS-5URU'Mm GM
 URR5HnUR5 M g)zpReplace all references to code objects with string
descriptions; this makes it possible to pickle the instance.
rN)�range�lenrG�
isinstancerK�str�typercrTr0r,�freeze)r'�irW�jri�ss      rrr�Stats.freeze�s���
�s�4�9�9�~�&�A��	�	�!��A��a�f�f�c�*�*�#�A�w��a�f�f�
�'7�!�A�B�%�'?�@��	�	�!���w�w�w��s�1�7�7�|�,�A������B�%�b�g�g�s�3�3�%)�"�X�u�R�W�W�~�.?�"�Q�R�&�.H�%I�����
�-�'����$�$�&�A�
�H�H�J�'r9c�L�[UR5RU5 g)z;Output profiling data in calltree format (for KCacheGrind).N)�_CallTreeFilterrG�output)r'res  r�calltree�Stats.calltree�s����	�	�"�)�)�$�/r9c�D�Ucn[RRU5nURS5(aSnO6[RR	U5Sn[U5S:�aUSSn[
US5nUS:Xa,UR[R"S5"U55 OWUS:Xa*UR[R"S5"U5S9 O'UR5 [R"XS	5 SSS5 g!,(df   g=f)
a�Save profiling data to a file.

:param filename: the name of the output file
:param format: 'txt' for a text representation;
    'callgrind' for calltree format;
    otherwise a pickled Python object. A format of None indicates
    that the format to use is to be found from the filename. If
    the name starts with callgrind.out, callgrind format is used
    otherwise the format is given by the filename extension.
Nz
callgrind.out�	callgrindr�wbzutf-8�txt)re�)�os�path�basename�
startswith�splitextrn�openrz�codecs�	getwriterrjrr�pickle�dump)r'�filenamerPr��ext�outfiles      r�save�
Stats.save�s����>��w�w�'�'��1�H��"�"�?�3�3�$���g�g�&�&�x�0��3���s�8�a�<� ���W�F�
�(�D�
!�W���$��
�
�f�.�.�w�7��@�A��5������!1�!1�'�!:�7�!C��D����
����D�1�-�"�
!�
!�s
�>B
D�
DrF)rbT)NNrE)r:r;r<r=r>rHrSrjrrrzr�r@rAr9rrrus&����
<�/�b�"0�.r9c�B�\rSrSr%Sr\\S'SrSrSr	Sr
SrS	rg
)rx�alConverter of a Stats object to input suitable for KCacheGrind.

This code is taken from http://ddaa.net/blog/python/lsprof-calltree
with the changes made by J.P. Calderone and Itamar applied. Note that
isinstance(code, str) needs to be used at times to determine if the code
object is actually an external code object (with a filename, etc.) or
a Python built-in.
�out_filec��XlgrE)rG)r'rGs  rrH�_CallTreeFilter.__init__s���	r9c��XlURS5 UR5 URHnUR	U5 M g)Nzevents: Ticks
)r�r^�_print_summaryrG�_entry)r'r��entrys   rry�_CallTreeFilter.outputs:�� �
����(�)������Y�Y�E��K�K���r9c��SnURH&n[URS-5n[X5nM( URRSU4-5 g)Nr��zsummary: %d
)rG�intra�maxr�r^)r'�max_costr�ras    rr��_CallTreeFilter._print_summarysM�����Y�Y�E��E�O�O�d�2�3�I��8�/�H��	
�
�
���O�x�k�9�:r9c���URnURn[URS-5n[	U[
5(aUR
S5 O*UR
SRUR55 UR
SR[US555 [	U[
5(a!UR
SRU55 O UR
SURU4-5 UR(a
URnO/n[	U[
5(aSnOURnUHnURXg5 M UR
S	5 g)
Nr�zfi=~
zfi={}
zfn={}
Tz0  {}
�%d %d
r�
)
r�rKr�rbrorpr^rP�co_filenamerc�co_firstlinenorT�	_subentry)r'r�r�rKrbrT�lineno�subentrys        rr��_CallTreeFilter._entrys���=�=���z�z����)�)�D�0�1�
��d�C� � ��N�N�8�$��N�N�9�+�+�D�,<�,<�=�>����y�'�'��d�D�(9�:�;��d�C� � ��N�N�9�+�+�J�7�8��N�N�9��(;�(;�Z�'H�H�I��;�;��K�K�E��E��d�C� � ��F��(�(�F��H��N�N�6�,�����t�r9c�j�URnURn[URS-5n[	U[
5(a[UR
S5 UR
SR[US555 UR
SUR4-5 O~UR
SRUR55 UR
SR[US555 UR
SURUR4-5 UR
SX4-5 g)	Nr�zcfi=~
zcfn={}
Tzcalls=%d 0
zcfi={}
zcalls=%d %d
r�)r�rKr�rarorpr^rPrcr_r�r�)r'r�r�r�rKras      rr��_CallTreeFilter._subentry-s����=�=���}�}����*�*�T�1�2�	��d�C� � ��N�N�9�%��N�N�:�,�,�U�4��->�?�@��N�N�>�X�-?�-?�,A�A�B��N�N�:�,�,�T�-=�-=�>�?��N�N�:�,�,�U�4��->�?�@��N�N�?�h�.@�.@�$�BU�BU�-V�V�W����y�F�#6�6�7r9)rGr�N)
r:r;r<r=r>r�__annotations__rHryr�r�r�r@rAr9rrxrx�s(�������;��48r9rx�_fn2modc��[U[5(aU$[URnU(aSURX R4-$SX RUR4-$![a� [
RR5H~up4UcM
[USS5cM[UR[5(dM;URRUR5(dMgU=n[UR' M� SRUR5=n[UR'GNf=f)N�__file__z<{}>z%s %s:%dz	%s:%d(%s))rorpr�r��KeyErrorr\�modulesr-�getattrr�r�rP�co_namer�)rKrz�mname�k�vs     rrcrc?s���$������P���(�(�)����T�\�\�5�2E�2E�F�F�F��e�%8�%8�$�,�,�G�G�G��!�P��K�K�%�%�'�D�A��y���q�*�d�+�3���a�j�j�#�.�.���z�z�$�$�T�%5�%5�6�6�45�5���� 0� 0�1��(�17�
�
�d�>N�>N�0O�O�E�G�D�,�,�-�P�s�A)�)BE�8E�0E�Ec�h�[RSS[l[R(d5[RRS5 [R"S5 SSKn[
UR[RSSS9upUR5 UR5 g)Nrz)usage: lsprof.py <script> <arguments...>
r�r�__main__)�run_name)
r\�argv�stderrr^�exit�runpyr	�run_pathrSrj)r��resultrs   r�mainr�Wsi���x�x���|�C�H��8�8��
�
���E�F��������E�N�N�C�H�H�Q�K�*�M�M�F�	�J�J�L�	�L�L�Nr9r�)F)r5r�rQr�r�r\r"�_lsprofrr�typingr�r�__all__r	rrrxr��dictrp�objectr�rcr�r:rAr9r�<module>r�s����
��	�
�
��,����I�
���*H/�H/�V~.�~.�BC8�C8�L ���c�6�k�	��H�0	��z���F�r9

Youez - 2016 - github.com/yon3zu
LinuXploit