guido van rossum hoaufpythonorg thanks fixing brett test_cprofilepy still failing think thats wrong file 26 test_cprofile test_profile rather similar 30 test_cprofilepy seems clone profileepy test program probably manualmerge glitch maybe deleted replaced modified copy test_profilepy guido fri feb 29 2008 828 pm brettcannon wrote author brettcannon date sat mar 1 052823 2008 new revision 61155 modified pythonbranchespy3klibtesttest_profilepy log change test_profile compare data originates test file including full output becomes hairy face io system written python thus profiled ie running test regrtest created different profile thanks extra flush call latter case need backport 2xs io entirely cbased thus profiled modified pythonbranchespy3klibtesttest_profilepy pythonbranchespy3klibtesttest_profilepy original pythonbranchespy3klibtesttest_profilepy sat mar 1 052823 2008 297 2913 stats pstatsstatsprof streams statsstrip_dirssort_statsstdname getattrstats methodname resultsappendsgetvalue output sgetvaluesplitlines mod_name testfunc__module__rsplit 11 compare stats originating test file prevents outside code eg io module causing unexpected output output linerstrip line output mod_name line resultsappendnjoinoutput return results def test_cprofileself 537 597 openfilename r f line f newfileappendline line6 cut linestartswithcut break openfilename w f 7722 836 dont remove comment everything autogenerated cut profiletestexpected_outputprint_stats 126 function calls 106 primitive calls 999751 cpu seconds ordered standard name ncalls tottime percall cumtime percall filenamelinenofunction 4 0004 0001 0004 0001 0append 4 0004 0001 0004 0001 0exc_info 1 0004 0004 999753 999753 0exec 12 0024 0002 11964 0997 0hasattr 1 0000 0000 0000 0000 0setprofile 1 0002 0002 999767 999767 1 2 0004 0002 0010 0005 iopy1213flush 2 0002 0001 0002 0001 iopy656closed 2 0004 0002 0006 0003 iopy874flush 0 0000 0000 profile0profiler 1 0002 0002 999751 999751 profile0testfunc 28 27972 0999 27972 0999 profileepy110__getattr__ 1 269996 269996 999769 999769 profileepy25testfunc 233 149937 6519 169917 56639 profileepy35factorial 10126 9112 4 115984 28996 119964 29991 profileepy73helper1 2 0006 0003 139946 69973 profileepy84helper2_indirect 8 311976 38997 399912 49989 profileepy88helper2 8 63976 7997 79960 9995 profileepy98subhelper 8 63976 7997 79960 9995 profileepy98subhelper profiletestexpected_outputprint_callers ordered standard name function called 0append profileepy73helper14 119964 0exc_info profileepy73helper14 119964 0exec profile0testfunc1 999751 0hasattr profileepy73helper14 119964 profileepy88helper28 399912 0setprofile profile0testfunc1 999751 1 0exec1 999753 iopy1213flush 0exec2 999753 iopy656closed iopy874flush2 0006 iopy874flush iopy1213flush2 0010 profile0profiler profile0testfunc profile0profiler1 0000 profileepy110__getattr__ 0hasattr12 11964 profileepy98subhelper16 79960 profileepy25testfunc 11 999767 13327 10910 profileepy84helper2_indirect profileepy55helper2 599830 profileepy88helper2 profileepy55helper6 599830 profileepy84helper2_indirect2 139946 profileepy98subhelper profileepy88helper28 399912 profileepy98subhelper profileepy88helper28 399912 profiletestexpected_outputprint_callees ordered standard name function called 0append 0exc_info 0exec 11 999767 iopy1213flush2 0010 0hasattr profileepy110__getattr__12 27972 0setprofile 1 profileepy25testfunc1 999769 iopy1213flush iopy874flush2 0006 iopy656closed iopy874flush iopy656closed2 0002 profile0profiler profile0testfunc1 999751 profile0testfunc 0exec1 999753 0setprofile1 0000 profileepy110__getattr__ profileepy25testfunc profileepy35factorial1 169917 profileepy55helper2 599830 16416 12311 profileepy84helper2_indirect2 139946 profileepy88helper26 399912 profileepy73helper1 0append4 0004 0exc_info4 0004 0hasattr4 11964 profileepy84helper2_indirect profileepy35factorial2 169917 profileepy88helper22 399912 profileepy88helper2 0hasattr8 11964 profileepy98subhelper8 79960 profileepy98subhelper profileepy110__getattr__16 27972 profileepy98subhelper profileepy110__getattr__16 27972 __name__ __main__ main _______________________________________________ python3000checkins mailing list oijgrn5170yclfwgoipythonorg httpmailpythonorgmailmanlistinfopython3000checkins guido van rossum home page httpwwwpythonorgguido _______________________________________________ python3000 mailing list smsbmo9552pythonorg httpmailpythonorgmailmanlistinfopython3000 unsubscribe httpmailpythonorgmailmanoptionspython3000python300040tangomucom tue 05 aug 2008 171330 0800 python3000 python3000checkins r61155 pythonbranchespy3klibtesttest_profilepy