|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r64487 - trunk/tools/build/v2
From: ghost_at_[hidden]
Date: 2010-07-30 16:57:40
Author: vladimir_prus
Date: 2010-07-30 16:57:40 EDT (Fri, 30 Jul 2010)
New Revision: 64487
URL: http://svn.boost.org/trac/boost/changeset/64487
Log:
Adjust profiling code
Text files modified:
trunk/tools/build/v2/build_system.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
Modified: trunk/tools/build/v2/build_system.py
==============================================================================
--- trunk/tools/build/v2/build_system.py (original)
+++ trunk/tools/build/v2/build_system.py 2010-07-30 16:57:40 EDT (Fri, 30 Jul 2010)
@@ -433,13 +433,14 @@
# FIXME: document this option.
if "--profiling" in sys.argv:
import cProfile
+ r = cProfile.runctx('main_real()', globals(), locals(), "stones.prof")
+
import pstats
- return cProfile.runctx('main_real()', globals(), locals(), "stones.prof")
-
stats = pstats.Stats("stones.prof")
stats.strip_dirs()
stats.sort_stats('time', 'calls')
stats.print_callers(20)
+ return r
else:
try:
return main_real()
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk