瀏覽代碼

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