>>>>> "JH" == Jeremy Hylton <jeremy@alum.mit.edu> writes: JH> There's a trace.py script sitting in Tools/scripts that works JH> when imported. I used it today to add code coverage to Zope's JH> test runner script. It took about 30 min. (mostly fixing bugs JH> in trace.py) and seems to work pretty well. JH> Why don't we put this script in the std library so it can JH> actually be imported? FWIW I wrote a yet another trace.py script that I occasionally use to look at call graphs. Its pretty simple code and I have no idea how it compares to Skip's version. I do believe that I wrote to Skip about my code a long while ago but can't remember what he said or if he said anything at all. My version pretty prints the call graph and indents things to make things easier to read. There is no 'coverage' class or anything that gives you stats. There are a few options which are fairly well documented. If you are interested maybe you can take a look here: http://av.stanford.edu/~prabhu/download/python/ There is also a test suite for the code in that directory (test_trace.py). cheers, prabhu
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4