Remove strip and limit on print profile stats

This commit is contained in:
Cédric Krier
2010-01-08 10:32:09 +01:00
parent 7970e906c7
commit 8f34992d65
+6 -6
View File
@@ -17,12 +17,12 @@ if '--profile' in sys.argv:
statfile = tempfile.mkstemp(".stat","trytond-")[1]
profile.run('trytond.server.TrytonServer().run()', statfile)
s = pstats.Stats(statfile)
s.strip_dirs().sort_stats('cumulative').print_stats(50)
s.strip_dirs().sort_stats('call').print_stats(50)
s.strip_dirs().sort_stats('time').print_stats(50)
s.strip_dirs().sort_stats('time')
s.print_callers(20)
s.print_callees(20)
s.sort_stats('cumulative').print_stats()
s.sort_stats('call').print_stats()
s.sort_stats('time').print_stats()
s.sort_stats('time')
s.print_callers()
s.print_callees()
os.remove(statfile)