mailr14871 - /1.3/relax.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on October 14, 2011 - 16:37:
Author: bugman
Date: Fri Oct 14 16:37:52 2011
New Revision: 14871

URL: http://svn.gna.org/viewcvs/relax?rev=14871&view=rev
Log:
Bug fix for the profiling!

This coding and debugging functionality now works again.  This has been 
broken since the merger of
the multi-processor branch.


Modified:
    1.3/relax.py

Modified: 1.3/relax.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/relax.py?rev=14871&r1=14870&r2=14871&view=diff
==============================================================================
--- 1.3/relax.py (original)
+++ 1.3/relax.py Fri Oct 14 16:37:52 2011
@@ -109,11 +109,9 @@
             sys.stderr.write("The profile module is not available, please 
install the Python development packages for profiling.\n\n")
             sys.exit()
 
-        #FIXME: profiling won't work with multi processors.
-
         # Run relax in profiling mode.
         profile.Profile.print_stats = print_stats
-        profile.run('processor.run()')
+        profile.runctx('processor.run()', globals(), locals())
         
 
 




Related Messages


Powered by MHonArc, Updated Fri Oct 14 20:40:01 2011