From c28d17ad76a66db21d558e938d8c2b4ddf2bdcef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 8 Jan 2010 10:33:06 +0100 Subject: [PATCH] Remove strip and limit on print profile stats --- bin/tryton | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bin/tryton b/bin/tryton index faef4ff473..1c680d2fea 100755 --- a/bin/tryton +++ b/bin/tryton @@ -37,12 +37,12 @@ if '--profile' in sys.argv: statfile = tempfile.mkstemp(".stat","tryton-")[1] profile.run('tryton.client.TrytonClient().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)