Re: [PATCH] Support cProfile profiler
Michael Haggerty <[email protected]> Fri, 02 Apr 2010 15:19:29 +0200
| Newsgroups | gmane.comp.version-control.subversion.cvs2svn.devel |
|---|---|
| Message-ID | <[email protected]> |
Jon Foster wrote: > According to the Python 2.5 docs, the "hotshot" profiler is > deprecated and may be removed in a future release of Python. Those > docs recommend the "cProfile" profiler, which is new in Python 2.5. > > The attached patch makes cvs2svn use cProfile if available, and fall > back to the existing hotshot support if cProfile isn't available. > > (Incidentally, profiling shows that the __does_rule_apply_to() > method in SubtreeSymbolTransform is taking over 40% of cvs2svn's > total runtime, on my conversion. Optimization patches to follow). Looks good, but the docs should be updated too. grep for "hotshot" to find the places. Thanks, Michael ------------------------------------------------------ http://cvs2svn.tigris.org/ds/viewMessage.do?dsForumId=1667&dsMessageId=2468768 To unsubscribe from this discussion, e-mail: [[email protected]].