From: <pj...@us...> - 2009-03-21 22:29:35
|
Revision: 6105 http://jython.svn.sourceforge.net/jython/?rev=6105&view=rev Author: pjenvey Date: 2009-03-21 22:29:19 +0000 (Sat, 21 Mar 2009) Log Message: ----------- o reenable test_profile, tweak the output to: - <string>:0 -> <string>:1 - don't test for profiling of Java (builtin) functions: http://bugs.jython.org/issue1281 Modified Paths: -------------- trunk/jython/Lib/test/output/test_profile trunk/jython/Lib/test/regrtest.py Modified: trunk/jython/Lib/test/output/test_profile =================================================================== --- trunk/jython/Lib/test/output/test_profile 2009-03-21 22:27:42 UTC (rev 6104) +++ trunk/jython/Lib/test/output/test_profile 2009-03-21 22:29:19 UTC (rev 6105) @@ -1,15 +1,10 @@ test_profile - 127 function calls (107 primitive calls) in 1.000 CPU seconds + 98 function calls (78 primitive calls) in 1.000 CPU seconds Ordered by: standard name ncalls tottime percall cumtime percall filename:lineno(function) - 4 0.000 0.000 0.000 0.000 :0(append) - 4 0.000 0.000 0.000 0.000 :0(exc_info) - 12 0.000 0.000 0.012 0.001 :0(hasattr) - 8 0.000 0.000 0.000 0.000 :0(range) - 1 0.000 0.000 0.000 0.000 :0(setprofile) - 1 0.000 0.000 1.000 1.000 <string>:1(<module>) + 1 0.000 0.000 1.000 1.000 <string>:0(<module>) 0 0.000 0.000 profile:0(profiler) 1 0.000 0.000 1.000 1.000 profile:0(testfunc()) 8 0.064 0.008 0.080 0.010 test_profile.py:103(subhelper) @@ -26,17 +21,10 @@ Ordered by: standard name Function called... -:0(append) -> -:0(exc_info) -> -:0(hasattr) -> test_profile.py:115(__getattr__)(12) 0.028 -:0(range) -> -:0(setprofile) -> -<string>:1(<module>) -> test_profile.py:30(testfunc)(1) 1.000 +<string>:0(<module>) -> test_profile.py:30(testfunc)(1) 1.000 profile:0(profiler) -> profile:0(testfunc())(1) 1.000 -profile:0(testfunc()) -> :0(setprofile)(1) 0.000 - <string>:1(<module>)(1) 1.000 -test_profile.py:103(subhelper) -> :0(range)(8) 0.000 - test_profile.py:115(__getattr__)(16) 0.028 +profile:0(testfunc()) -> <string>:0(<module>)(1) 1.000 +test_profile.py:103(subhelper) -> test_profile.py:115(__getattr__)(16) 0.028 test_profile.py:115(__getattr__) -> test_profile.py:30(testfunc) -> test_profile.py:40(factorial)(1) 0.170 test_profile.py:60(helper)(2) 0.600 @@ -46,31 +34,24 @@ test_profile.py:60(helper) -> test_profile.py:78(helper1)(4) 0.120 test_profile.py:89(helper2_indirect)(2) 0.140 test_profile.py:93(helper2)(6) 0.400 -test_profile.py:78(helper1) -> :0(append)(4) 0.000 - :0(exc_info)(4) 0.000 - :0(hasattr)(4) 0.012 +test_profile.py:78(helper1) -> test_profile.py:115(__getattr__)(4) 0.028 test_profile.py:89(helper2_indirect) -> test_profile.py:40(factorial)(2) 0.170 test_profile.py:93(helper2)(2) 0.400 -test_profile.py:93(helper2) -> :0(hasattr)(8) 0.012 - test_profile.py:103(subhelper)(8) 0.080 +test_profile.py:93(helper2) -> test_profile.py:103(subhelper)(8) 0.080 + test_profile.py:115(__getattr__)(8) 0.028 Ordered by: standard name Function was called by... -:0(append) <- test_profile.py:78(helper1)(4) 0.120 -:0(exc_info) <- test_profile.py:78(helper1)(4) 0.120 -:0(hasattr) <- test_profile.py:78(helper1)(4) 0.120 - test_profile.py:93(helper2)(8) 0.400 -:0(range) <- test_profile.py:103(subhelper)(8) 0.080 -:0(setprofile) <- profile:0(testfunc())(1) 1.000 -<string>:1(<module>) <- profile:0(testfunc())(1) 1.000 +<string>:0(<module>) <- profile:0(testfunc())(1) 1.000 profile:0(profiler) <- profile:0(testfunc()) <- profile:0(profiler)(1) 0.000 test_profile.py:103(subhelper) <- test_profile.py:93(helper2)(8) 0.400 -test_profile.py:115(__getattr__) <- :0(hasattr)(12) 0.012 +test_profile.py:115(__getattr__) <- test_profile.py:78(helper1)(4) 0.120 + test_profile.py:93(helper2)(8) 0.400 test_profile.py:103(subhelper)(16) 0.080 -test_profile.py:30(testfunc) <- <string>:1(<module>)(1) 1.000 +test_profile.py:30(testfunc) <- <string>:0(<module>)(1) 1.000 test_profile.py:40(factorial) <- test_profile.py:30(testfunc)(1) 1.000 test_profile.py:40(factorial)(20) 0.170 test_profile.py:89(helper2_indirect)(2) 0.140 Modified: trunk/jython/Lib/test/regrtest.py =================================================================== --- trunk/jython/Lib/test/regrtest.py 2009-03-21 22:27:42 UTC (rev 6104) +++ trunk/jython/Lib/test/regrtest.py 2009-03-21 22:29:19 UTC (rev 6105) @@ -1476,7 +1476,6 @@ test_multibytecodec test_multibytecodec_support test_peepholer - test_profile test_pyclbr test_stringprep test_threadsignals This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |