1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
#!/usr/bin/python
#
# THIS FILE IS PART OF THE JOKOSHER PROJECT AND LICENSED UNDER THE GPL. SEE
# THE 'COPYING' FILE FOR DETAILS
#
# This module is meant for testing and profiling the code only.
# This file should not be included in any release.
#
#-------------------------------------------------------------------------------
import hotshot
from hotshot import stats
import JokosherApp
profile = hotshot.Profile("JokosherApp", lineevents=1)
profile.runcall(JokosherApp.main)
s = stats.load("JokosherApp")
s.strip_dirs()
s.sort_stats("cumulative", "calls").print_stats()
s.sort_stats("time", "calls").print_stats()
|