1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-26 09:56:13 +01:00

fix profiling wrapper for the moved osc lib

This commit is contained in:
Dr. Peter Poeml 2006-05-31 15:05:37 +00:00
parent b9f53cbfb7
commit 4f88c9b4ad

View File

@ -3,7 +3,9 @@
import hotshot, hotshot.stats
import tempfile
import os, sys
import osc
from osc import commandline
from osc.core import init_basicauth
if __name__ == '__main__':
@ -15,8 +17,8 @@ if __name__ == '__main__':
prof = hotshot.Profile(filename)
osc.init_basicauth()
prof.runcall(osc.main)
init_basicauth()
prof.runcall(commandline.main)
print 'run complete. analyzing.'
prof.close()