mailr23765 - /branches/disp_spin_speed/test_suite/shared_data/dispersion/profiling/profiling_cr72.py


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

Header


Content

Posted by tlinnet on June 10, 2014 - 01:01:
Author: tlinnet
Date: Tue Jun 10 01:01:59 2014
New Revision: 23765

URL: http://svn.gna.org/viewcvs/relax?rev=23765&view=rev
Log:
Small edit to profiling script, to help bug finding.

Task #7807 (https://gna.org/task/index.php?7807): Speed-up of dispersion 
models for Clustered analysis.

Modified:
    
branches/disp_spin_speed/test_suite/shared_data/dispersion/profiling/profiling_cr72.py

Modified: 
branches/disp_spin_speed/test_suite/shared_data/dispersion/profiling/profiling_cr72.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/disp_spin_speed/test_suite/shared_data/dispersion/profiling/profiling_cr72.py?rev=23765&r1=23764&r2=23765&view=diff
==============================================================================
--- 
branches/disp_spin_speed/test_suite/shared_data/dispersion/profiling/profiling_cr72.py
      (original)
+++ 
branches/disp_spin_speed/test_suite/shared_data/dispersion/profiling/profiling_cr72.py
      Tue Jun 10 01:01:59 2014
@@ -57,7 +57,7 @@
         # Calc for single.
         s_filename = tempfile.NamedTemporaryFile(delete=False).name
         # Profile for a single spin.
-        cProfile.run('single(iter=100)', s_filename)
+        cProfile.run('single(iter=1)', s_filename)
 
         # Read all stats files into a single object
         s_stats = pstats.Stats(s_filename)
@@ -69,13 +69,13 @@
         s_stats.sort_stats('cumulative')
 
         # Print report for single.
-        s_stats.print_stats()
+        #s_stats.print_stats()
 
     if True:
         # Calc for cluster.
         c_filename = tempfile.NamedTemporaryFile(delete=False).name
         # Profile for a cluster of 100 spins.
-        cProfile.run('cluster(iter=100)', c_filename)
+        cProfile.run('cluster(iter=1)', c_filename)
 
         # Read all stats files into a single object
         c_stats = pstats.Stats(c_filename)
@@ -87,7 +87,7 @@
         c_stats.sort_stats('cumulative')
 
         # Print report for clustered.
-        c_stats.print_stats()
+        #_stats.print_stats()
 
 
 class Profile(Dispersion):




Related Messages


Powered by MHonArc, Updated Tue Jun 10 01:20:02 2014