ソースを参照

tools: make use of xrange() instead of range() in calc_stats()

This only affects starpu_trace_state_stats.py.
Samuel Pitoiset 9 年 前
コミット
25e5a1e3b4
共有1 個のファイルを変更した1 個の追加1 個の削除を含む
  1. 1 1
      tools/starpu_trace_state_stats.py

+ 1 - 1
tools/starpu_trace_state_stats.py

@@ -82,7 +82,7 @@ class Worker():
 	    is_allowed = not len(start_profiling_times)
 
             # Check if the event is inbetween start/stop profiling events
-            for t in range(len(start_profiling_times)):
+            for t in xrange(len(start_profiling_times)):
 		if (curr_event._start_time > start_profiling_times[t] and
 		    curr_event._start_time < stop_profiling_times[t]):
 		    is_allowed = True