403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.217.18
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:/Python313/Lib/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python313/Lib/test/__pycache__/test_profile.cpython-313.pyc
�

��i�$���SrSSKrSSKrSSKrSSKrSSKJr SSKJr SSK	J
r
JrJrJ
r
 SSKJrJr SSKrSSKJrJr SSKJrJr "S	S
\R05rSr\S5rS
r0rS\S'S\S'S\S'\S:Xa\"5 gg)z"Test suite for the profile module.�N)�unified_diff)�StringIO)�TESTFN�unlink�temp_dir�
change_cwd)�contextmanager�redirect_stdout)�testfunc�timer)�assert_python_failure�assert_python_okc��\rSrSr\R
r\r/SQrSr	Sr
Sr\S5r
SrSrS	rS
rSrSrS
rSrg)�ProfileTest�)�print_stats�
print_callers�
print_calleesz:0(max)c�"�[[5 g�N)rr��selfs �&C:\Python313\\Lib\test\test_profile.py�tearDown�ProfileTest.tearDowns	���v��c��[$r)�_ProfileOutputrs r�get_expected_output�ProfileTest.get_expected_outputs���rc��/nUR[S5n[5nURS[5[	55 UR[5U-
5 URH�n[5n[R"X%S9nUR5RS5 [Xd5"5 UR5R5n[R R#SS5SnUV	s/sHo�U	;dM
U	R%5PM nn	URSR'U55 M� U$s sn	f)N���MbP?�
testfunc()��stream�stdname�.��
)�
profilerclassr�runctx�globals�locals�append�methodnamesr�pstats�Stats�
strip_dirs�
sort_stats�getattr�getvalue�
splitlinesr�
__module__�rsplit�rstrip�join)
�cls�results�prof�start_timer�
methodname�s�stats�output�mod_name�lines
          r�do_profiling�ProfileTest.do_profilings����� � ���.���g�����L�'�)�V�X�6����u�w��,�-��/�/�J��
�A��L�L��0�E�����)�)�)�4��E�&�(��Z�Z�\�,�,�.�F��*�*�1�1�#�q�9�!�<�H�17�K���d�:J�m�d�k�k�m��F�K��N�N�4�9�9�V�,�-�*����Ls�	E�Ec	���UR5nUR5nURUSS5 /n[UR5H{upEX%nXS-nXg:wdMURSUSURRS35 UR[URS5URS5SS	95 M} U(a!URSRU55 gg)
Nri�r(z
Stats.z output for z does not fit expectation:r)�)�lineterm)
rEr�assertEqual�	enumerater/r.r*�__name__�extendr�split�failr:)rr<�expectedrO�i�method�a�bs        r�
test_cprofile�ProfileTest.test_cprofile3s����#�#�%���+�+�-��������T�*���"�4�#3�#3�4�I�A�� �A��!���A��v����h�v�h�l�#�1�1�:�:�;�<9�9�:����L����������
�%'�)�*�5���I�I�d�i�i��o�&�rc	�d�/SQnUH�n[5nUR[S5nURU[	5[55 [R"XCS9nUR5 UR5nURURUSRX&55 M� g)N)zmax([0])zmax([0], key=int)zmax([0], **dict(key=int))zmax(*([0],))zmax(*([0],), key=int)zmax(*([0],), **dict(key=int))r"r$z&Profiling {0!r} didn't report max:
{1})
rr*rr+r,r-r0r1rr5�assertIn�expected_max_output�format)r�stmts�stmtr@r=rA�ress       r�test_calling_conventions�$ProfileTest.test_calling_conventionsDs���
���D��
�A��%�%�e�U�3�D��K�K��g�i���2��L�L��0�E������*�*�,�C��M�M�$�2�2�C�9�@�@��K�
M�rc�"�[5 URRS5 SSS5 URRS[S9 UR	[
RR[55 g!,(df   N_=f)N�int('1')��filename)�silent�profilermodule�runr�
assertTrue�os�path�existsrs r�test_run�ProfileTest.test_runYsZ��
�X����#�#�J�/�������
�V��<���������v�.�/��X�s�B�
Bc���[[55nURRSSS9 SSS5 UR	SWR55 g!,(df   N/=f)Nra)�tottimer&)�sortz(Ordered by: internal time, standard name)r
rrerfrXr5)r�fs  r�test_run_with_sort_by_values�(ProfileTest.test_run_with_sort_by_values_sK��
�X�Z�
(�A����#�#�J�5K�#�L�)��
�
�@�!�*�*�,�O�)�
(�s�A�
A&c�j�[5 URRS[5[	55 SSS5 URRS[5[	5[
S9 UR
[RR[
55 g!,(df   Nq=f)Nr#rb)
rdrer+r,r-rrgrhrirjrs r�test_runctx�ProfileTest.test_runctxdso��
�X����&�&�|�W�Y���I�����"�"�<���F�H�+1�	#�	3���������v�.�/�	�X�s�.B$�$
B2c���[SURRS5 [SURRSS5 [SURRSSSS5 g)N�-m�random_module_xyz�timeitz-n�1)r
rerLrrs r�test_run_profile_as_module�&ProfileTest.test_run_profile_as_moduleks]���d�D�$7�$7�$@�$@�$�G�	�d�D�$7�$7�$@�$@�"�$7�	9�	��t�2�2�;�;��x��s�	4rc	���[5n[U5 [R"S5 [	SSSS9nURS5 SSS5 [
SURRSS	S5 UR[RRS	55 SSS5 SSS5 g!,(df   Np=f!,(df   N(=f!,(df   g=f)
N�destzdemo.py�wzutf-8)�encodingzimport os; os.chdir("dest")rwz-oz
out.pstats)rrrh�mkdir�open�writerrerLrgrirj)r�tmpdirrps   r�(test_output_file_when_changing_directory�4ProfileTest.test_output_file_when_changing_directoryws���
�Z�6�:�f�#5��H�H�V���i��w�7�1����5�6�8�
��d�)�)�2�2��l��
�
�O�O�B�G�G�N�N�<�8�9�$6�Z�Z�7�7��$6�#5��Z�Z�s:�C�"C�B5�AC�$C�5
C�?C�
C	�C�
C%�N)rLr7�__qualname__�__firstlineno__�profile�Profiler*rer/rYrr�classmethodrErUr^rkrqrtr{r��__static_attributes__r�rrrrs^���O�O�M��N�C�K�#��������('�"M�*0�P�
0�
4�:rrc
�B�URS5n[SU-5 UR5n/n[US5nUH,nUR	U5 URS5(dM, O SSS5 [US5nUR
U5 URS5 [UR5H$upgURSU<SX&S	-<S
35 M& URS5 SSS5 g!,(df   N�=f!,(df   g=f)N�cozRegenerating %s...�rz#--cutrz_ProfileOutput = {}
z_ProfileOutput[z	] = """\
r(z"""
z'
if __name__ == "__main__":
    main()
)
r9�printrEr�r.�
startswith�
writelinesr�rKr/)rcr;r<�newfilerprDrQrRs        r�regenerate_expected_outputr��s������t�$�H�	�
��
)�*���� �G��G�	
�h��	���D��N�N�4� ����x�(�(���
�
�h��	��	���W��	���'�(�"�3�?�?�3�I�A�
�G�G��G�a�C�L�*�
+�4�	
���<�=�

�	�

�	��
�	�s�+C?�-C?�A1D�?
D
�
Dc#�# �[Rn[5[lSv� U[lg!U[lf=f7fr)�sys�stdoutr)r�s rrdrd�s-���
�Z�Z�F���Z��
�
���
��V��
�s�A�7�A�
A�Ac��S[R;a[R"5 g[	[
[5 g)Nz-r)r��argv�unittest�mainr��__file__rr�rrr�r��s!���3�8�8���
�
��"�8�[�9ra�       28   27.972    0.999   27.972    0.999 profilee.py:110(__getattr__)
        1  269.996  269.996  999.769  999.769 profilee.py:25(testfunc)
     23/3  149.937    6.519  169.917   56.639 profilee.py:35(factorial)
       20   19.980    0.999   19.980    0.999 profilee.py:48(mul)
        2   39.986   19.993  599.830  299.915 profilee.py:55(helper)
        4  115.984   28.996  119.964   29.991 profilee.py:73(helper1)
        2   -0.006   -0.003  139.946   69.973 profilee.py:84(helper2_indirect)
        8  311.976   38.997  399.912   49.989 profilee.py:88(helper2)
        8   63.976    7.997   79.960    9.995 profilee.py:98(subhelper)ra�:0(append)                        <- profilee.py:73(helper1)(4)  119.964
:0(exception)                     <- profilee.py:73(helper1)(4)  119.964
:0(hasattr)                       <- profilee.py:73(helper1)(4)  119.964
                                     profilee.py:88(helper2)(8)  399.912
profilee.py:110(__getattr__)      <- :0(hasattr)(12)   11.964
                                     profilee.py:98(subhelper)(16)   79.960
profilee.py:25(testfunc)          <- <string>:1(<module>)(1)  999.767
profilee.py:35(factorial)         <- profilee.py:25(testfunc)(1)  999.769
                                     profilee.py:35(factorial)(20)  169.917
                                     profilee.py:84(helper2_indirect)(2)  139.946
profilee.py:48(mul)               <- profilee.py:35(factorial)(20)  169.917
profilee.py:55(helper)            <- profilee.py:25(testfunc)(2)  999.769
profilee.py:73(helper1)           <- profilee.py:55(helper)(4)  599.830
profilee.py:84(helper2_indirect)  <- profilee.py:55(helper)(2)  599.830
profilee.py:88(helper2)           <- profilee.py:55(helper)(6)  599.830
                                     profilee.py:84(helper2_indirect)(2)  139.946
profilee.py:98(subhelper)         <- profilee.py:88(helper2)(8)  399.912ra�:0(hasattr)                       -> profilee.py:110(__getattr__)(12)   27.972
<string>:1(<module>)              -> profilee.py:25(testfunc)(1)  999.769
profilee.py:110(__getattr__)      ->
profilee.py:25(testfunc)          -> profilee.py:35(factorial)(1)  169.917
                                     profilee.py:55(helper)(2)  599.830
profilee.py:35(factorial)         -> profilee.py:35(factorial)(20)  169.917
                                     profilee.py:48(mul)(20)   19.980
profilee.py:48(mul)               ->
profilee.py:55(helper)            -> profilee.py:73(helper1)(4)  119.964
                                     profilee.py:84(helper2_indirect)(2)  139.946
                                     profilee.py:88(helper2)(6)  399.912
profilee.py:73(helper1)           -> :0(append)(4)   -0.004
profilee.py:84(helper2_indirect)  -> profilee.py:35(factorial)(2)  169.917
                                     profilee.py:88(helper2)(2)  399.912
profilee.py:88(helper2)           -> :0(hasattr)(8)   11.964
                                     profilee.py:98(subhelper)(8)   79.960
profilee.py:98(subhelper)         -> profilee.py:110(__getattr__)(16)   27.972r�__main__)�__doc__r�r0r�rh�difflibr�ior�test.support.os_helperrrrr�
contextlibr	r
r��
test.profileerr�test.support.script_helperr
r�TestCaserr�rdr�rrLr�rr�<module>r�s���(�
�
��	� ��G�G�6��)�N�r:�(�#�#�r:�j>�(����:���	!K��}��#L����$#R����&�z���F�r

Youez - 2016 - github.com/yon3zu
LinuXploit