ROOTPLOIT
Server: Apache
System: Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User: ws67150586 (67150586)
PHP: 8.3.36
Disabled: NONE
Upload Files
File: //kunden/kunden/kunden/lib/python3/dist-packages/mercurial/__pycache__/profiling.cpython-313.pyc
�

6�h*��
�SSKJr SSKrSSKrSSKrSSKrSSKrSSKJr SSK	J
r
JrJrJ
r
Jr Sr\R S5r\R S5r\R S	5r\R S
5r"SS5rg)
�)�annotationsN�)�_)�encoding�error�
extensions�pycompat�utilc��Un[R"X/S9 [R"U5n[USS5$![a gf=f)zBload profiler extension. return profile method, or None on failure)�	whitelist�profileN)r�loadall�find�getattr�KeyError)�ui�profiler�extname�mods    �5/usr/lib/python3/dist-packages/mercurial/profiling.py�
_loadprofilerrsO���G����r�Y�/�-��o�o�g�&���s�I�t�,�,������s�<�
A	�A	c#��# �URSS5nURSS5nURSS5nURSS5nUS;aUR[S5U-5 SnS	S
KJn UR5nURSS
9 Sv� UR)5 US:Xa)S	SKJn
 U
R-U5nUR/U5 OTUR1UR355nUR5[6R8"U55 UR;XAUS9 UR=5 g![a  [R"[S55ef=f![a�n[U5S:wae[[S5(de[RR![RR"5n	U	S:XaSn
[R"U
5SeSnU	(a[$R&"U	5nSn[R"[U5U-5SeSnAff=f!UR)5 US:Xa)S	SKJn
 U
R-U5nUR/U5 OTUR1UR355nUR5[6R8"U55 UR;XAUS9 UR=5 f=f7f)N�	profilingsformatssortslimitsnested)�text�kcachegrinds-unrecognized profiling format '%s' - Ignored
rr)�lsprofsYlsprof not available - install from http://codespeak.net/svn/user/arigo/hack/misc/lsprof/T)�subcallsz(Another profiling tool is already active�
monitoring�cProfiles cannot recursively call `lsprof`s	<unknown>sAfailed to start "lsprofile"; another profiler already running: %sr)�lsprofcalltree)�limit�file�climit)�config�	configint�warnr�r�ImportErrorr�Abort�Profiler�enable�
ValueError�str�hasattr�sysr�get_tool�PROFILER_IDr�
strtolocal�disabler �KCacheGrind�output�Stats�getstats�sortr	�sysstr�pprint�flush)r�fp�format�fieldr!r#r�p�exc�other_tool_name�msg�tool�mr �calltree�statss                r�	lsprofilerG&s[���
�Y�Y�|�Y�
/�F��I�I�l�G�,�E��L�L��x�0�E�
�\�\�,�	�
2�F�
�.�.�
����C�D�v�M�N���
��	����A�5�	���$���&�
�	�	�	���^�#�(�%�1�1�!�4�H��O�O�B���L�L�����.�E��J�J�x���u�-�.��L�L�u�f�L�=�
���
��W�
��k�k�
�I�
�
�	
�
���5��s�8�A�A���s�L�)�)���.�.�1�1�#�.�.�2L�2L�M���j�(�5�C��+�+�c�"��,��D���*�*�?�;��T�A��+�+�a��d�T�k�*��4��#5��*	
�	�	���^�#�(�%�1�1�!�4�H��O�O�B���L�L�����.�E��J�J�x���u�-�.��L�L�u�f�L�=�
���
�sW�A.K'�1E�7K'�E-�H?�B$K'�*E*�*K'�-
H<�7CH7�7H<�<K'�?B%K$�$K'c	#��# �SSKJn URSS5nSnSnUR
USU-XE5n[R"5nUR5 Sv� UR5 UR5 SnU[R"5U-
UR5URSS	944-n[USS
9 g![a  [R"[	S55ef=f!UR5 UR5 SnU[R"5U-
UR5URSS	944-n[USS
9 f=f7f)Nr)�
flamegraphsWflamegraph not available - install from https://github.com/evanhempel/python-flamegraphr�freqTg�?s7Collected %d stack frames (%d unique) in %2.2f seconds.)�unique)r;)rIr(rr)rr%�
ProfileThreadr
�timer�start�stop�join�
num_frames�print)	rr<rI�freq�filter_�collapse_recursion�thread�
start_timerDs	         r�flameprofilerXasY���
�)��<�<��g�.�D��G���
�
%�
%�
�C�$�J���F�����J������
����
����
�F��	��
�
��z�)��!�!�#��!�!��!�.�
�
�	
��	�a�t���;�
��k�k�
�C�
�
�	
�
��&	���
����
�F��	��
�
��z�)��!�!�#��!�!��!�.�
�
�	
��	�a�t��s6�E�C�AE�C4� A'E�*C1�1E�4A(E�Ec#�# �SSKJn URSS5nUS:�a,URRS:XaURU5 OUR
[S5U-5 URSS[R=(a S=(d S	5nURS
US9 Sv� UR5nURSS5nURRURRURR URR"URR$S
.nXg;aXvnO3UR
[S5U-5 URR n0n	Sn
US:Xa7UR'U
SSS5nUR'U
SS5nU	R)X�S9 O4US:Xa.UR'U
SSS5n
X�S'UR+SS5nX�S'UR,"U4XXS.U	D6 UR/5 g!UR5nURSS5nURRURRURR URR"URR$S
.nXg;aXvnO3UR
[S5U-5 URR n0n	Sn
US:Xa7UR'U
SSS5nUR'U
SS5nU	R)X�S9 O4US:Xa.UR'U
SSS5n
X�S'UR+SS5nX�S'UR,"U4XXS.U	D6 UR/5 f=f7f)Nr)�statprofrrJrs+invalid sampling frequency '%s' - ignoring
s
time-trackscpusrealsthread)�	mechanism�tracks
statformat)sbylinesbymethod�hotpathsjson�chromes#unknown profiler output format: %s
c���[U[[45(a[U5$URS5(a[USS5S-nO[U5nSUs=::aS::aU$ [	U5e)N�%����drr)�
isinstance�float�int�endswithr,)�s�vs  r�fraction�statprofile.<locals>.fraction�sg���!�e�S�\�*�*��Q�x���z�z�$����!�C�R�&�M�C�'���!�H���A�{��{�����Q�-��r^sshowming{�G�zt?sshowmax)�minthreshold�maxthresholdr]g�������?r!sshowtime�showtime)�datar=)r'rZr%�state�
profile_level�resetr&rr$r	�	iswindowsrNrO�DisplayFormats�ByLine�ByMethod�Hotpath�Json�Chrome�
configwith�update�
configbool�displayr;)rr<rZrSr\ro�
profformat�formats�
displayformat�kwargsri�showmin�showmaxr!rns               r�statprofiler��s.����
�<�<��g�.�D��a�x��>�>�'�'�1�,��N�N�4� ��
����A�B�T�I�J��I�I��m�X�%7�%7�%B�F�%M�g�
�E�
�N�N�Y�e�N�4�.�
��}�}����Y�Y�|�]�;�
� �.�.�5�5�!�0�0�9�9� �/�/�7�7��,�,�1�1��.�.�5�5�
��� �#�/�M��G�G�A�=�>��K�L�$�3�3�;�;�M���		 ���"��m�m�H�l�J��N�G��m�m�H�l�J�G�G��M�M�w�M�E�
�:�
%��M�M�(�L�*�d�K�E�#�7�O��}�}�\�;�?�H�!)�:������G�$�G��G�
���
��W�}�}����Y�Y�|�]�;�
� �.�.�5�5�!�0�0�9�9� �/�/�7�7��,�,�1�1��.�.�5�5�
��� �#�/�M��G�G�A�=�>��K�L�$�3�3�;�;�M���		 ���"��m�m�H�l�J��N�G��m�m�H�l�J�G�G��M�M�w�M�E�
�:�
%��M�M�(�L�*�d�K�E�#�7�O��}�}�\�;�?�H�!)�:������G�$�G��G�
���
�s �B+N�.H�2E'N�E(N�Nc	#��# �URSS5nURSS5nURSS5nUR5nSU-n[R"5nUSS[U5SS	[U5S
U/	nU(aUR
SU/5 [R"UU1[RS9n	U	RR5n
Sv� [R"U	R[R5 U	R!5 g![R"U	R[R5 U	R!5 f=f7f)
Nrs
py-spy.exespy-spy.freqs
py-spy.formatz
/dev/fd/%d�recordz--pidz--nativez--ratez--outputz--format)�pass_fds�stdout)r$r%�fileno�os�getpidr-�extend�
subprocess�Popen�PIPEr��readline�kill�pid�signal�SIGINT�communicate)rr<�exerSr=�fd�output_path�my_pid�cmd�procrs           r�
pyspy_profiler��s���
�)�)�L�-�
0�C�
�<�<��n�5�D�
�Y�Y�|�%5�
6�F�	����B��"�%�K�
�Y�Y�[�F�	����F�����D�	���
�C���
�
�J��'�(�����������D�	
������A��
�
������&�-�-�(������	������&�-�-�(�����s �CE"�D�AE"�AE�E"c�@�\rSrSrSrSSjrSrSrSrSr	Sr
S	rg
)r
��z�Start profiling.

Profiling is active when the context manager is active. When the context
manager exits, profiling results will be written to the configured output.
c�~�XlSUlSUlSUlSUlSUlX lSUlSUlg)NTF)	�_ui�_output�_fp�
_fpdoclose�_flushfp�	_profiler�_enabled�_entered�_started)�selfr�enableds   r�__init__�profile.__init__�s=���������������
�����
���
���
rkc�V�SUlUR(aUR5 U$)NT)r�r�rN�r�s r�	__enter__�profile.__enter__s����
��=�=��J�J�L��rkc��UR(d[R"S5eUR(agSUl[R
R
S5nSnUcURRSS5nUS;aB[URU5nUc)URR[S5U-5 S	nURRSS
5UlURS:Xa[R"5UlO�UR(a2[R "UR5n[#US5UlO{[$R&(a)"S
S5nSUlU"UR5UlO=SUlURR*UlURR,UlUbO-US:Xa[0nO US:Xa[2nOUS:Xa[4nO[6nU"URUR5UlUR8R;5 g! UR=5 e=f)zxStart profiling.

The profiling will stop at the context exit.

If the profiler was already started, this has no effect.suse a context manager to startNTsHGPROFrstype)�ls�stat�flame�py-spys%unrecognized profiler '%s' - ignored
r�soutput�blackbox�wbc�&�\rSrSrSrSrSrSrg)�profile.start.<locals>.uifpi-c��Xlg�N�r�)r�rs  rr��$profile.start.<locals>.uifp.__init__.s��#%�rkc�:�URRU5 gr�)r��	write_err)r�ros  r�write�!profile.start.<locals>.uifp.write1s�����*�*�4�0rkc�8�URR5 gr�)r�r;r�s rr;�!profile.start.<locals>.uifp.flush4s�������(rkr�N)�__name__�
__module__�__qualname__�__firstlineno__r�r�r;�__static_attributes__�rkr�uifpr�-s��&�1�)rkr�Fr�r�r�)r�r�ProgrammingErrorr�r�environ�getr�r$rr&rr�r
�stringior��
expandpath�openr	rsr��ferr�foutr�rGrXr�r�r�r��_closefp)r�r�proffn�pathr�s     rrN�
profile.starts����}�}��(�(�)J�K�K��=�=����
��#�#�'�'�	�2�������x�x���|�W�=�H��@�@�"�4�8�8�X�6�F��~����
�
��?�@�8�K��#���x�x���|�Y�?���)	��|�|�{�*��=�=�?���������t�|�|�4����d�+����#�#�)�)�#(�������>���"'����8�8�=�=��� $���
�
��
��!���U�"�"���X�%�%���Y�&�&��$��#�D�H�H�d�h�h�7�D�N��N�N�$�$�&��	��M�M�O��s
�+EI�Ic��SnURb�UR5 URRXU5nURS:XanURn[U[R5(deSUR5-nURSS5nURRSU5 UR5 U$)Nr�sProfile:
%sr`s%%sprofile)
r��_uiflush�__exit__r�r�rcr
r��getvalue�replacer��logr�)r��exception_type�exception_value�	traceback�	propagater<�vals       rr��profile.__exit__Ps����	��>�>�%��M�M�O����/�/����I��|�|�{�*��X�X��!�"�d�m�m�4�4�4�4�%����
�5���k�k�$��.�������Z��-��
�
���rkc�x�UR(a)URbURR5 gggr�)r�r��closer�s rr��profile._closefpcs'���?�?�t�x�x�3��H�H�N�N�� 4�?rkc�\�UR(aURR5 ggr�)r�r;r�s rr��profile._uiflushgs���=�=��M�M���!�rk)	r�r�r�r�r�r�r�r�r�N)T)r�r�r�r��__doc__r�r�rNr�r�r�r�r�rkrr
r
�s'���	��C�J�&�"rkr
)�
__future__r�
contextlibr�r�r�r/�i18nrr'rrrr	r
r�contextmanagerrGrXr�r�r
r�rkr�<module>r�s���#��	�
��
����	-����7��7�t��� �� �F���>��>�B���(��(�Vv"�v"rk