1
0
mirror of https://github.com/openSUSE/osc.git synced 2026-01-30 17:38:59 +01: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
committed by Marco Strigl
parent 2b778f555d
commit 13df397b07
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

@@ -111,7 +111,7 @@ setuptools.setup(name='osc',
url = 'http://en.opensuse.org/openSUSE:OSC',
download_url = 'https://github.com/openSUSE/osc',
packages = ['osc', 'osc.util'],
scripts = ['osc-py3-wrapper.py'],
scripts = ['osc-wrapper.py'],
data_files = data_files,
# Override certain command classes with our own ones