home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyo (Python 2.4)
-
- from AppInstall import *
- from Menu import *
- import hotshot
- import hotshot.stats as hotshot
- if __name__ == '__main__':
- datadir = '/usr/share/gnome-app-install'
- desktopdir = '/usr/share/app-install'
- name = 'gai.prof'
- prof = hotshot.Profile(name)
- if sys.argv[1] == '-m':
- cache = apt.Cache()
- treeview = gtk.TreeView()
- prof.runcall(ApplicationMenu, desktopdir, datadir, cache, treeview, treeview, apt.progress.OpProgress())
- prof.close()
- elif sys.argv[1] == '-a':
- cmd = 'app = AppInstall(datadir, desktopdir, sys.argv)'
- prof.runctx(cmd, globals(), locals())
- prof.close()
- elif sys.argv[1] == '-d':
- stat = hotshot.stats.load(name)
- stat.strip_dirs()
- stat.sort_stats('time', 'calls')
- stat.print_stats(20)
- stat.print_callers(20)
- stat.print_callees(20)
-
-
-