浏览代码

Keep order of events when they have the same time

Samuel Thibault 11 年之前
父节点
当前提交
4e93f7f8cb
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 2 2
      tools/starpu_paje_draw_histogram.in
  2. 2 2
      tools/starpu_paje_state_stats.in

+ 2 - 2
tools/starpu_paje_draw_histogram.in

@@ -109,8 +109,8 @@ for file in $inputfiles; do
 	exit 5
     fi
 # Sorting traces
-    grep -e '^\(\(%\)\|\(\(1\|2\|3\|4\|5\|6\|7\|8\|9\)\>\)\)' $file > start.trace
-    grep -e '^\(\(%\)\|\(\(1\|2\|3\|4\|5\|6\|7\|8\|9\)\>\)\)' -v $file > end.trace
+    grep -s -e '^\(\(%\)\|\(\(1\|2\|3\|4\|5\|6\|7\|8\|9\)\>\)\)' $file > start.trace
+    grep -s -e '^\(\(%\)\|\(\(1\|2\|3\|4\|5\|6\|7\|8\|9\)\>\)\)' -v $file > end.trace
     sort -V --key=2,2 end.trace > endSorted.trace
     cat start.trace endSorted.trace > outputSorted.trace
 

+ 2 - 2
tools/starpu_paje_state_stats.in

@@ -110,8 +110,8 @@ for file in $inputfiles; do
 	exit 5
     fi
 # Sorting traces
-    grep -e '^\(\(%\)\|\(\(1\|2\|3\|4\|5\|6\|7\|8\|9\)\>\)\)' $file > start.trace
-    grep -e '^\(\(%\)\|\(\(1\|2\|3\|4\|5\|6\|7\|8\|9\)\>\)\)' -v $file > end.trace
+    grep -s -e '^\(\(%\)\|\(\(1\|2\|3\|4\|5\|6\|7\|8\|9\)\>\)\)' $file > start.trace
+    grep -s -e '^\(\(%\)\|\(\(1\|2\|3\|4\|5\|6\|7\|8\|9\)\>\)\)' -v $file > end.trace
     sort -V --key=2,2 end.trace > endSorted.trace
     cat start.trace endSorted.trace > outputSorted.trace