3 # Use this script to profile cvs2svn.py using Python's hotshot profiler.
5 # The profile data is stored in cvs2svn.hotshot. To view the data using
6 # hotshot, run the following in python:
9 # stats = hotshot.stats.load('cvs2svn.hotshot')
11 # stats.sort_stats('time', 'calls')
12 # stats.print_stats(20)
14 # It is also possible (and a lot better) to use kcachegrind to view the data.
15 # To do so, you must first convert the data to the cachegrind format using
16 # hotshot2cachegrind, which you can download from the following URL:
18 # http://kcachegrind.sourceforge.net/cgi-bin/show.cgi/KcacheGrindContribPython
20 # Convert the data using the following command:
22 # hotshot2cachegrind -o cachegrind.out cvs2svn.hotshot
24 # Depending on the size of the repository, this can take a long time. When
25 # the conversion is done, simply open cachegrind.out in kcachegrind.
27 import cvs2svn
, hotshot
29 prof
= hotshot
.Profile('cvs2svn.hotshot')
30 prof
.runcall(cvs2svn
.main
)