Browse Source

tools: fix potential python error when parsing trace.rec

Samuel Pitoiset 9 years ago
parent
commit
610ec5b74b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tools/starpu_trace_state_stats.py

+ 1 - 1
tools/starpu_trace_state_stats.py

@@ -48,7 +48,7 @@ class EventStats():
         self._count += 1
 
     def show(self):
-        if not self._name == None:
+        if not self._name == None and not self._category == None:
             print "\"" + self._name + "\"," + str(self._count) + ",\"" + self._category + "\"," + str(round(self._duration_time, 6))
 
 class Worker():