Commits

David Mandelin  committed 57e8e59

Fix vis.py bug left by recent change, from Leandro

  • Participants
  • Parent commits ce9d845

Comments (0)

Files changed (2)

File scripts/vis.py

     t0 = hist.timeline[0].t
     ts = []
     for x in hist.timeline:
-        ts.append((x.s0, x.t-t0))
-    total = ts[-1][1] - ts[0][1]
+        ts.append((x.s0, x.r, x.t-t0))
+    total = ts[-1][2] - ts[0][2]
 
     return Data(total, hist.state_summary, ts)
 

File src/binlog.cpp

 #include <sys/stat.h>
 #include <vector>
 #include <algorithm>
+#include <string.h>
+#include <assert.h>
 
 #include "tracevis.h"
 #include "tracevis_gen.h"