mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-28 02:36:15 +01:00
Merge branch 'hostshot' of https://github.com/sleep-walker/osc
Remove osc_hotshot.py cruft.
This commit is contained in:
commit
b7e90c3b57
@ -1,32 +0,0 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import hotshot, hotshot.stats
|
||||
import tempfile
|
||||
import os, sys
|
||||
|
||||
from osc import commandline
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
(fd, filename) = tempfile.mkstemp(prefix = 'osc_profiledata_', dir = '/dev/shm')
|
||||
f = os.fdopen(fd)
|
||||
|
||||
try:
|
||||
|
||||
prof = hotshot.Profile(filename)
|
||||
|
||||
prof.runcall(commandline.main)
|
||||
print 'run complete. analyzing.'
|
||||
prof.close()
|
||||
|
||||
stats = hotshot.stats.load(filename)
|
||||
stats.strip_dirs()
|
||||
stats.sort_stats('time', 'calls')
|
||||
stats.print_stats(20)
|
||||
|
||||
del stats
|
||||
|
||||
finally:
|
||||
f.close()
|
||||
os.unlink(filename)
|
2
setup.py
2
setup.py
@ -109,7 +109,7 @@ setup(name='osc',
|
||||
url = 'http://en.opensuse.org/openSUSE:OSC',
|
||||
download_url = 'https://github.com/openSUSE/osc',
|
||||
packages = ['osc', 'osc.util'],
|
||||
scripts = ['osc_hotshot.py', 'osc-wrapper.py'],
|
||||
scripts = ['osc-wrapper.py'],
|
||||
data_files = data_files,
|
||||
|
||||
# Override certain command classes with our own ones
|
||||
|
Loading…
Reference in New Issue
Block a user