Support cProfile profiler.
commit56fc056ba598f9040b36978861810973422c4325
authormhagger <mhagger@be7e6eca-30d4-0310-a8e5-ac0d63af7087>
Thu, 8 Apr 2010 19:29:18 +0000 (8 19:29 +0000)
committermhagger <mhagger@be7e6eca-30d4-0310-a8e5-ac0d63af7087>
Thu, 8 Apr 2010 19:29:18 +0000 (8 19:29 +0000)
treeb431d3e8929ec83a49660c7699bf1a26bfcdc877
parent7b89714a788881307882e67afb2348267f731a90
Support cProfile profiler.

Patch by: Jon Foster <jon.foster@cabot.co.uk>

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.

This patch makes cvs2svn use cProfile if available, and fall back to
the existing hotshot support if cProfile isn't available.

git-svn-id: http://cvs2svn.tigris.org/svn/cvs2svn/trunk@5111 be7e6eca-30d4-0310-a8e5-ac0d63af7087
cvs2svn_lib/main.py
cvs2svn_lib/run_options.py
www/cvs2svn.html