1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-20 01:06:17 +02:00

remove osc_hotshot.py

osc_hotshot.py is long time untouched and broken thus I assume it is
safe to be removed

fixes issue #400
This commit is contained in:
Tomáš Čech 2018-04-10 06:34:07 +02:00
parent 5341f3aae5
commit b37452157b
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