2007-01-20 Alex Roitman <shura@gramps-project.org>
* src/Utils.py (profile): Accept and pass additional arguments. * src/DataViews/_PersonView.py (delete_person_response): Busy cursor. svn: r7937
This commit is contained in:
@ -1076,12 +1076,12 @@ def launch(prog_str,path):
|
||||
|
||||
os.spawnvpe(os.P_NOWAIT, prog, prog_list, os.environ)
|
||||
|
||||
def profile(func):
|
||||
def profile(func,*args):
|
||||
import hotshot, hotshot.stats
|
||||
|
||||
pr = hotshot.Profile('mystats.profile')
|
||||
print "Start"
|
||||
pr.runcall(func)
|
||||
pr.runcall(func,*args)
|
||||
print "Finished"
|
||||
pr.close()
|
||||
print "Loading profile"
|
||||
|
Reference in New Issue
Block a user