瀏覽代碼

traces: reduce the size of the generated trace.rec

Using only one letter is suficient enough. This reduces the size of the
trace.rec file from about 50% and improve the parsing a bit.
Samuel Pitoiset 9 年之前
父節點
當前提交
9c29266bae
共有 1 個文件被更改,包括 5 次插入5 次删除
  1. 5 5
      src/debug/traces/starpu_fxt.c

+ 5 - 5
src/debug/traces/starpu_fxt.c

@@ -544,12 +544,12 @@ static void mpicommthread_set_state(double time, const char *prefix, const char
 
 static void recfmt_set_state(double time, const char *event, int workerid, int threadid, const char *name)
 {
-	fprintf(states_file, "EventType: %s\n", event);
+	fprintf(states_file, "E: %s\n", event);
 	if (name)
-		fprintf(states_file, "Name: %s\n", name);
-	fprintf(states_file, "WorkerId: %d\n", workerid);
-	fprintf(states_file, "ThreadId: %d\n", threadid);
-	fprintf(states_file, "StartTime: %f\n", time);
+		fprintf(states_file, "N: %s\n", name);
+	fprintf(states_file, "W: %d\n", workerid);
+	fprintf(states_file, "T: %d\n", threadid);
+	fprintf(states_file, "S: %f\n", time);
 	fprintf(states_file, "\n");
 }