@@ -0,0 +1,1062 @@
+#!/usr/bin/env python%0A#%0A# Use this script to profile cvs2svn.py using Python's hotshot profiler.%0A#%0A# The profile data is stored in cvs2svn.hotshot.  To view the data using%0A# hotshot, run the following in python:%0A#%0A#      import hotshot.stats%0A#      stats = hotshot.stats.load('cvs2svn.hotshot')%0A#      stats.strip_dirs()%0A#      stats.sort_stats('time', 'calls')%0A#      stats.print_stats(20)%0A#%0A# It is also possible (and a lot better) to use kcachegrind to view the data.%0A# To do so, you must first convert the data to the cachegrind format using%0A# hotshot2cachegrind, which you can download from the following URL:%0A#%0A# http://kcachegrind.sourceforge.net/cgi-bin/show.cgi/KcacheGrindContribPython%0A#%0A# Convert the data using the following command:%0A#%0A#      hotshot2cachegrind -o cachegrind.out cvs2svn.hotshot%0A#%0A# Depending on the size of the repository, this can take a long time. When%0A# the conversion is done, simply open cachegrind.out in kcachegrind.%0A%0Aimport cvs2svn, hotshot%0A%0Aprof = hotshot.Profile('cvs2svn.hotshot')%0Aprof.runcall(cvs2svn.main)%0Aprof.close()%0A

Add a new script to simplify profiling of cvs2svn.py. Document in the script how to use kcachegrind to view the results.