` SrSSKrSSKrSSKrSSKJrJr SSKJr SSK J r "SS\5r "SS \R5r S r0rS \S 'S \S'S\S'\S:Xa\"5 gg)z#Test suite for the cProfile module.N) ProfileTestregenerate_expected_output)assert_python_failure)supportcj\rSrSr\R r\rSrSr Sr Sr Sr Sr SrS rS rS rS rg ) CProfileTest z{built-in method builtins.max}c[$N)_ProfileOutput)selfs 9/opt/alt/python313/lib64/python3.13/test/test_cprofile.pyget_expected_output CProfileTest.get_expected_outputscBSSKn[R"5nURS5nUR 5 UR 5 UR 5 URURR[5 SSS5 g!,(df  g=f)Nrc[$r )intrr>CProfileTest.test_bad_counter_during_dealloc..s3r) _lsprofrcatch_unraisable_exceptionProfilerenabledisableclear assertEqual unraisableexc_type TypeError)r rcmobjs rtest_bad_counter_during_dealloc,CProfileTest.test_bad_counter_during_deallocsd  / / 1R"";/C JJL KKM IIK   R]]33Y ? 2 1 1s A-B Bc LSSKnUR5[R"54HTnSHKnUR X#S9 [ X#5nUR [5 U"5 SSS5 SSS5 MM MV g!,(df  N=f!,(df  Mt=f)Nr)_pystart_callback_pyreturn_callback_ccall_callback_creturn_callback)profilemethod)rrcProfileProfilesubTestgetattr assertRaisesr!)r rr+r, method_objs rtest_crash_with_not_enough_args,CProfileTest.test_crash_with_not_enough_args!s((*H,<,<,>?G \\'\A!(!9J**95" 6BA @65BAs$!B"B *B B B B# c^SSKn"U4SjS5n[R"5nURU"S55mTR 5 S"5 TR 5 TR 5 URURR[5 SSS5 [R"5nURU"S55mTR 5 S"5 TR 5 TR 5 URURR[5 SSS5 g!,(df  N=f!,(df  g=f)Nrc(>\rSrSrSrU4SjrSrg)8CProfileTest.test_evil_external_timer..EvilTimer5cSUlXlg)Nrcount disable_count)r r<s r__init__ACProfileTest.test_evil_external_timer..EvilTimer.__init__6s %2"rc>U=RS- slURUR:XaTR5 UR$)N)r;r<r)r profiler_with_evil_timers r__call__ACProfileTest.test_evil_external_timer..EvilTimer.__call__:s8 a ::!3!33,446zz!rr:N)__name__ __module__ __qualname____firstlineno__r=rB__static_attributes__)rAsr EvilTimerr75s 3 " "rrIr@cgr rrrrr7CProfileTest.test_evil_external_timer..FTrcgr rrrrrrKQrLr) rrrrrrrrrr RuntimeError)r rrIr"rAs @rtest_evil_external_timer%CProfileTest.test_evil_external_timer1s  " " / / 1R'.'7'7 ! 'E $ $ + + -   $ , , . $ * * ,   R]]33\ B2 / / 1R'.'7'7 ! 'E $ $ + + -   $ , , . $ * * ,   R]]33\ B2 12 12 1sA:E?A:E E E!cUR5nURUR5 UR5 UR [ R R[ R R5S5 UR5 UR[ R R[ R R5S5 gNr-) profilerclass addCleanuprrrsys monitoringget_tool PROFILER_IDassertIsr profs rtest_profile_enable_disable(CProfileTest.test_profile_enable_disableVs!!#  %   NN # #CNN$>$> ? M  cnn--cnn.H.HI4PrcUR5nURUR5 UnURX5 UR [ R R[ R R5S5 SSS5 UR[ R R[ R R5S5 g!,(df  NV=frS) rTrUrrZrrVrWrXrY)r r\"_CProfileTest__enter__return_values rtest_profile_as_context_manager,CProfileTest.test_profile_as_context_managerbs!!#  % * MM$ 6   ''(B(BCZ Q  cnn--cnn.H.HI4PTs AC C%cUR5nUR5nUR5 UR[UR5 UR 5 gr )rTrr1 ValueErrorr)r prpr2s rtest_second_profiler!CProfileTest.test_second_profilerssD    !  "  *cjj1 rcXUR5nUR5 [SS55 UR5 UR 5 UR R 5H:unup4 nUSS:XdMURUS5 URUS5 M< g)a* gh-106152 generator.throw() should trigger a call in cProfile In the any() call below, there should be two entries for the generator: * one for the call to __next__ which gets a True and terminates any * one when the generator is garbage collected which will effectively do a throw. c3*# UH oS:Hv M g7f)r@Nr).0as r *CProfileTest.test_throw..s #FqFFs)r@rMrMz r@N)rTranyr create_statsstatsitemsr)r refuncccnc_s r test_throwCProfileTest.test_throwzs   !  #F ##  ')xx~~'7 #D#21aAw+%  Q'  Q'(8rcUR5nUR[5 [R [ 55 SSS5 SSS5 g!,(df  N=f!,(df  g=fr )rTr1r!bytesfindstrr[s rtest_bad_descriptor CProfileTest.test_bad_descriptorsK   !T""9- 35!." !--" !s"A'AA' A$ A'' A5rN)rDrErFrGr-r.rTprofilermoduleexpected_max_outputrr$r3rPr]rargrwr}rHrrrrr sJ$$MN: @% #CJ QQ"(("rrc\rSrSrSrSrg)TestCommandLinecn[SSSS5upnURUS5 URSU5 g)Nz-mr-z-sdemors!option -s: invalid choice: 'demo')r assertGreaterassertIn)r rcouterrs r test_sortTestCommandLine.test_sorts5,T:tVL  2q! :C@rrN)rDrErFrGrrHrrrrrsArrcS[R;a[R"5 g[ [ [ 5 g)Nz-r)rVargvunittestmainr__file__rrrrrrs! 388 "8\:ra 28 0.028 0.001 0.028 0.001 profilee.py:110(__getattr__) 1 0.270 0.270 1.000 1.000 profilee.py:25(testfunc) 23/3 0.150 0.007 0.170 0.057 profilee.py:35(factorial) 20 0.020 0.001 0.020 0.001 profilee.py:48(mul) 2 0.040 0.020 0.600 0.300 profilee.py:55(helper) 4 0.116 0.029 0.120 0.030 profilee.py:73(helper1) 2 0.000 0.000 0.140 0.070 profilee.py:84(helper2_indirect) 8 0.312 0.039 0.400 0.050 profilee.py:88(helper2) 8 0.064 0.008 0.080 0.010 profilee.py:98(subhelper) print_statsaprofilee.py:110(__getattr__) <- 16 0.016 0.016 profilee.py:98(subhelper) profilee.py:25(testfunc) <- 1 0.270 1.000 :1() profilee.py:35(factorial) <- 1 0.014 0.130 profilee.py:25(testfunc) 20/3 0.130 0.147 profilee.py:35(factorial) 2 0.006 0.040 profilee.py:84(helper2_indirect) profilee.py:48(mul) <- 20 0.020 0.020 profilee.py:35(factorial) profilee.py:55(helper) <- 2 0.040 0.600 profilee.py:25(testfunc) profilee.py:73(helper1) <- 4 0.116 0.120 profilee.py:55(helper) profilee.py:84(helper2_indirect) <- 2 0.000 0.140 profilee.py:55(helper) profilee.py:88(helper2) <- 6 0.234 0.300 profilee.py:55(helper) 2 0.078 0.100 profilee.py:84(helper2_indirect) profilee.py:98(subhelper) <- 8 0.064 0.080 profilee.py:88(helper2) {built-in method builtins.hasattr} <- 4 0.000 0.004 profilee.py:73(helper1) 8 0.000 0.008 profilee.py:88(helper2) {built-in method sys.exception} <- 4 0.000 0.000 profilee.py:73(helper1) {method 'append' of 'list' objects} <- 4 0.000 0.000 profilee.py:73(helper1) print_callersa;:1() -> 1 0.270 1.000 profilee.py:25(testfunc) profilee.py:110(__getattr__) -> profilee.py:25(testfunc) -> 1 0.014 0.130 profilee.py:35(factorial) 2 0.040 0.600 profilee.py:55(helper) profilee.py:35(factorial) -> 20/3 0.130 0.147 profilee.py:35(factorial) 20 0.020 0.020 profilee.py:48(mul) profilee.py:48(mul) -> profilee.py:55(helper) -> 4 0.116 0.120 profilee.py:73(helper1) 2 0.000 0.140 profilee.py:84(helper2_indirect) 6 0.234 0.300 profilee.py:88(helper2) profilee.py:73(helper1) -> 4 0.000 0.004 {built-in method builtins.hasattr} profilee.py:84(helper2_indirect) -> 2 0.006 0.040 profilee.py:35(factorial) 2 0.078 0.100 profilee.py:88(helper2) profilee.py:88(helper2) -> 8 0.064 0.080 profilee.py:98(subhelper) profilee.py:98(subhelper) -> 16 0.016 0.016 profilee.py:110(__getattr__) {built-in method builtins.hasattr} -> 12 0.012 0.012 profilee.py:110(__getattr__) print_callees__main__)__doc__rVrr-test.test_profilerrtest.support.script_helperrtestrrTestCaserrr rDrrrrs) E<G";G"TAh''A; !K}#k"#p$ zFr