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 :  C:/Python315/Lib/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/test/__pycache__/test_gc_stats.cpython-315.opt-2.pyc
R
>lqjC1c�p�]PHs]PHs]PHs]PHs]PHs]QHGsGsGsG	s	]QH(Gs]PH2sQsQQksQQksQQ	ksQ
sQsQs\O,\2Q
2QQ\O.22s\	2QQ\O.22sP!\
c\OQ2gh9h)�)�Py_GIL_DISABLED�
import_helper�requires_gil_enabled�$requires_remote_subprocess_debugging)�test_subprocessz2Test only runs when _remote_debugging is availablec�@�U]6�cPgQ[[Q1*-!)��return.��tuple�int)�formats"�'C:\Python315\\Lib\test\test_gc_stats.py�__annotate__�(get_interpreter_identifiers.__annotate__s��4�4�U�3�s�7�^�4�c	�j�[[STt.tFDpOjJ	to22!ttoh�N)r�sorted�iid)�gc_stats�ss& r�get_interpreter_identifiersrs&�����1��1����1�2�3�3��1s�0c�R�U]6�cPgQ[[[[1*-!)rr	r
)r
s"rr�get_generations.__annotate__ s��&�&��s�3�s�{�!3�&rc��[2oSFDoUOUO2J 	[[	U22!r)�set�add�genrr)r�generationsrs&  r�get_generationsr  s5���%�K�
�������������$�%�%rc�2�U]6�cPgQ[Q[-!)r�
generationr)r)r
s"rr�get_last_item.__annotate__(s������#�rc��PoSFDLoUOU6XfJUOU6XfJ)UdUOUO6fJJSoJN	U!r)rr�ts_start)rr"r�itemrs&&&  r�
get_last_itemr'(sG���D�
���5�5�J��1�5�5�C�<��|�t�}�}�q�z�z�9����
�Krc�|�[O[O22![cP
!h9h�F)�_remote_debugging�is_python_process�os�getpid�	Exception�rr�has_local_process_debuggingr02s0��� �2�2�2�9�9�;�?�?������s�(,�	;�;�;c�`�UOU[2UO[U2]2SFDtoUOU[O
2UO
[U2O[2UO
[U2[[22Jv	P!�r)
�assertIsInstance�list�
assertGreater�lenr*�GCStatsInfo�assertEqual�type�__match_args__�GC_STATS_FIELDS)�testcase�statsr&s&& r�check_gc_stats_fieldsr>9sz�����e�T�*����3�u�:�q�)����!�!�$�(9�(E�(E�F����T�$�Z�6�6��H����S��Y��O�(<�=�rc���SFDeo[VU2o[VU2oUdUeP
!UOUO6:cP
!UOUO6:fJcP
!	P	!r)r'�duration�
candidates)�before_stats�after_statsrrr"�before�afters&&&&   r�gc_stats_counters_advancedrFBs_��!�
��|��=���k�s�;���=�F�N���>�>�V�_�_�,�����v�0�0�0��"�rz requires local process debuggingc�j`�\sQs]Osn]sQsQsQs\O\
Q2Q2sQsUs
P!)�TestLocalGCStatsc��[O[O2P	Q5oUO	P
Q5o[V2P!)T��debug��all_interpreters)r*�	GCMonitorr,r-�get_gc_statsr>)�self�monitorr=s&  r�test_gc_stats_fields�%TestLocalGCStats.test_gc_stats_fieldsUs5��#�-�-�b�i�i�k��F���$�$�e�$�<���d�*rc�t�[O[O2P
Q5o[	V2P!)FrL)r*rOr,r-r>)rPr=s& r�test_module_get_gc_stats_fields�0TestLocalGCStats.test_module_get_gc_stats_fieldsZs%��!�.�.��I�I�K�%�1���d�*rc��[OQ2oQoUO2oUO[O
U22[
]2FDo[OU2J	[O[O2P
Q5o[O[O2P	Q5oUO2UO[U2Q2UO!][U22UO#[%[U22]2UO['U2Q2UO['U2Q2[U2FD1o[
]2FDoUO)[+VdU22J 	J3	P!SO2h9h)zconcurrent.interpretersz�
            import gc
            objects = []
            obj = []
            obj.append(obj)
            objects.append(obj)
            gc.collect(0)
            gc.collect(1)
            gc.collect(2)
        rLr2�r�r)r�
import_module�create�exec�textwrap�dedent�range�gc�collectr*rOr,r-�closer8r�assertInr5r6r �assertIsNotNoner')rP�interpreters�source�interpr"�
main_stats�	all_statsrs&       r�.test_all_interpreters_filter_for_local_process�?TestLocalGCStats.test_all_interpreters_filter_for_local_process_sO��$�2�2�3L�M��	���$�$�&��
	��K�K�����/�0�#�A�h�
��
�
�:�&�'�+�7�7��	�	��e�5�J�)�6�6��	�	��d�4�I�
�L�L�N����4�Z�@�$�G��
�
�a�4�Y�?�@����3�:�9�E�F��J������4�i�@������3�Y�?�.�y�9�C�#�A�h�
��$�$�]�9�#�%N�O�'�:��
�L�L�N�s�B$F2�2Gzrequires free-threaded GCc	��Qo[O[O2P
Q5oSFD(oUO	[V#UO22J*	,o[Q2FD'o,oUOU2UOU2J)	SFDo[OU2J	[O[O2P
Q5oUO[V'VO2V'12P!)rrL��rX)
r*rOr,r-rdr'�	_main_iidr_�appendr`ra�
assertTruerF)rPrrBr"�objects�_�objrCs&       r�9test_gc_stats_counters_for_main_interpreter_free_threaded�JTestLocalGCStats.test_gc_stats_counters_for_main_interpreter_free_threaded�s�����(�5�5��I�I�K�%�1��%�J�� � ��l����G�
I�&����t��A��C��J�J�s�O��N�N�3���&�J��J�J�z�"�&�(�4�4��I�I�K�%�1�����&��;���
H�
�'�	
rr/)�__name__�
__module__�__qualname__�__firstlineno__rnrRrUrj�unittest�
skipUnlessrrt�__static_attributes__�__classdictcell__��
__classdict__s@rrHrHOs@�����I�+�
+�
 P�D����*E�F�
�G�
rrHc�`�\sQs]�sn\Q2sQsQU1QkQkksQsQs	Qs
\2Q2s\2Q	2s
\2Q
2sQsUsP!)
�TestGCStatsc�2�]UmQUmQUmP!)ra
            import gc
            import time

            gc.collect(0)
            gc.collect(1)
            gc.collect(2)

            _test_sock.sendall(b"working")
            objects = []
            while True:
                if len(objects) > 100:
                    objects = []

                obj = []
                obj.append(obj)
                objects.append(obj)

                time.sleep(0.1)
                gc.collect(0)
                gc.collect(1)
                gc.collect(2)
            a�
            import concurrent.interpreters as interpreters
            import gc
            import time

            source = """if True:
                import gc

                if "objects" not in globals():
                    objects = []
                if len(objects) > 100:
                    objects = []

                obj = []
                obj.append(obj)
                objects.append(obj)

                gc.collect(0)
                gc.collect(1)
                gc.collect(2)
            """

            if {0}:
                interp = interpreters.create()
                interp.exec(source)

            gc.collect(0)
            gc.collect(1)
            gc.collect(2)

            _test_sock.sendall(b"working")
            objects = []
            while True:
                if len(objects) > 100:
                    objects = []

                obj = []
                obj.append(obj)
                objects.append(obj)

                time.sleep(0.1)
                if {0}:
                    interp.exec(source)
                gc.collect(0)
                gc.collect(1)
                gc.collect(2)
            )rn�_main_interpreter_script�_script)�clss&r�
setUpClass�TestGCStats.setUpClass�s����
�(��$�..��rc���SFDZo[VUO2o[V$UO2oUdUeP
!UOUO6:fJXP
!	P	!r)r'rn�ts_stop)rPrBrCrr"rDrEs&&&&   r�_gc_stats_advanced�TestGCStats._gc_stats_advanced�sP��%�J�"�<�T�^�^�L�F�!�+�4�>�>�J�E��}�����}�}����.��
&�rc�(:�U]6�cPgQRZQRZ-!)r�scriptrM)�str�bool)r
rs"�rr�*TestGCStats._collect_gc_stats.__annotate__�s���)�)��)�t�)rc
�:�[UP	Q59^tt^2o[OUOOP	Q5oUOUQ5oSFD*o[
VgUO2oUOU2J,	So	[]
2FDFo
[OQ2UOUQ5o	UOViU2%fJEL	UOQU8QU8QU	802PPP2Vi1!)%fhWW	1!9h)T)�wait_for_workingrJrLg�?zGC stats for generations z did not advance: z -> )rr*rN�process�pidrOr'rnrdr_�time�sleepr��fail)rPr�rMr�subprocrQrBr"rDrCrrs&&&&       r�_collect_gc_stats�TestGCStats._collect_gc_stats�s���f�t�<�<��'�1�1�'�/�/�2E�2E�T�R�G�"�/�/�AQ�/�R�L�)�
�&�|����P���$�$�V�,�*�'�K��2�Y���
�
�3��%�2�2�DT�2�U���*�*�<�k�R�R��	��	�	�/���? � ,�/�t�K�?�D��=�&�(�(�'=�<�&�[�(�(�s�B>D�"D�D	�D	c�|�UOU2UOU2UOUOUOV12UOUOUOV12UOUOUOV12UOUO
UO
V12UOUOUOV12UOUOUOV12UOUOUOV12P!r)
rdr5�collectionsr%r�r@rA�assertGreaterEqual�	collected�
uncollectable)rPrDrEs&&&r�_check_gc_stats�TestGCStats._check_gc_stats	s������V�$����U�#����5�,�,�f�.@�.@�6�/�R����5�>�>�6�?�?�V�O�L����5�=�=�&�.�.�6�/�J����5�>�>�6�?�?�V�O�L����5�+�+�V�->�->���P�	
�������1A�1A�F�?�S����� 3� 3�V�5I�5I�F�?�[rc�,�[U2o[U2oUOV42UO[U2Q2UO[U2Q2SFD�oUOQU029^tt^2[	U]U2[	U]U2[	U]U21o[	U]U2[	U]U2[	U]U21o[Vg2FDvq�UO
V�2J	PPP2J�	P!)%fhJ�9h)rzinterpreter id=rX)rr8r �subTestr'�zipr�)
rPrBrC�before_iids�
after_iidsr�before_last_items�after_last_itemsrDrEs
&&&       r�_check_interpreter_gc_stats�'TestGCStats._check_interpreter_gc_statss���1�,�?��0��=�
�����1������6�	�B������5�y�A��C������u�5�6�6�%2�<��C�%H�%2�<��C�%H�%2�<��C�%H�%J�!�%2�+�q�#�$F�$1�+�q�#�$F�$1�+�q�#�$F�$H� �&)�):�%M�M�F��(�(��7�&N�7�6��6�6�6�s�A3D	�D
�D
c
��[OUO2oUOUP
QQ5vq#[	]2FD�oUOUQ59^tt^2[
V$UO2o[
V4UO2oUOU2UOU2UOUOUOVV12UOUOUOVV12UOUOUOVV12PPP2J�	P!)%fhCJ9h)F)r)r"rX)
r]r^r�r�r_r�r'rnrdr5r�r%r�)rPr�rBrCr"rDrEs&      r�-test_gc_stats_timestamps_for_main_interpreter�9TestGCStats.test_gc_stats_timestamps_for_main_interpreter.s������!>�!>�?��$(�$:�$:��E�y�%;�%2�!�� ��(�J������4�4�&�|����P��%�k�t�~�~�N���$�$�V�,��$�$�U�+��"�"��%�%�v�'9�'9��O�%��"�"��N�N�F�O�O��O�%��"�"��M�M�6�>�>��O�%�5�4�#�4�4�4�s�!CD6	�6E
�?E
c��[OUOOP
22oUO	UP
2vq#UOV#2P!r)�r]r^r�r
r�r��rPr�rBrCs&   r�"test_gc_stats_for_main_interpreter�.TestGCStats.test_gc_stats_for_main_interpreterDsB��������!4�!4�U�!;�<��$(�$:�$:�6�5�$I�!���(�(��Crc��[OUOOP	22oUO	UP
2vq#UOV#2P!�Tr�r�s&   r�;test_gc_stats_for_main_interpreter_if_subinterpreter_exists�GTestGCStats.test_gc_stats_for_main_interpreter_if_subinterpreter_existsKsB��������!4�!4�T�!:�;��$(�$:�$:�6�5�$I�!���(�(��Crc�j�[OUOOP	22oUO	UP	2vq#[U2o[U2oUO
[U2]2UO
[U2]2UOVE2UOV#2P!r�)
r]r^r�r
r�rr5r6r8r�)rPr�rBrCr�r�s&     r�"test_gc_stats_for_all_interpreters�.TestGCStats.test_gc_stats_for_all_interpretersRs���������!4�!4�T�!:�;��$(�$:�$:�6�4�$H�!��1�,�?��0��=�
����3�{�+�Q�/����3�z�?�A�.�����1��(�(��Crr/))r)rvrwrxry�classmethodr�r�r�r�r�r�rr�r�r�r|r}r~s@rr�r��s������G��G�R�)�)�.
\�8�,%�,��D��D���D��D���D��Drr�)
rrr%r�r�r�r�rA�	heap_sizer@)r`r,r]r�rz�test.supportrrrr�2test.test_profiling.test_sampling_profiler.helpersrr*�ImportError�SkipTestr;rr r'r0r>rFr{�TestCaserHr�r/rr�<module>r�s���	�	������O���<��
4�&���>�
�
����!�#E�G�G
�x�(�(�G
�G�G
�T&�'�BD�(�#�#�BD�(�BD��W��
�
�
�<����s�B�B5�!B5

Youez - 2016 - github.com/yon3zu
LinuXploit