1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 22:56:15 +01:00
Remove osc_hotshot.py cruft.
This commit is contained in:
Marcus Huewe 2018-04-10 13:33:52 +02:00
commit b7e90c3b57
2 changed files with 1 additions and 33 deletions

View File

@ -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)

View File

@ -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