From 8f34992d65e524986cd1ecce8c5012fb52ff84b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 8 Jan 2010 10:32:09 +0100 Subject: [PATCH] Remove strip and limit on print profile stats --- bin/trytond | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bin/trytond b/bin/trytond index dabcc3e85d..3baa30d7ac 100755 --- a/bin/trytond +++ b/bin/trytond @@ -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)