[prev in list] [next in list] [prev in thread] [next in thread] 

List:       boost-commit
Subject:    [Boost-commit] svn:boost r64487 - trunk/tools/build/v2
From:       ghost () cs ! msu ! su
Date:       2010-07-30 20:57:40
Message-ID: 20100730205740.F247E2F83D3 () wowbagger ! osl ! iu ! edu
[Download RAW message or body]

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 mailing list
Boost-commit@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-commit
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic