浏览代码

Make sure that the FxT trace was not corrupted and display a warning in that
case (this may happen if there were too many events).

Cédric Augonnet 15 年之前
父节点
当前提交
2db6f869c3
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      src/common/fxt.c

+ 9 - 0
src/common/fxt.c

@@ -86,6 +86,15 @@ void _starpu_stop_fxt_profiling(void)
 		fprintf(stderr, "Writing FxT traces into file %s:%s\n", hostname, PROF_FILE_USER);
 #endif
 		fut_endup(PROF_FILE_USER);
+
+		int ret = fut_done();
+		if (ret < 0)
+		{
+			/* Something went wrong with the FxT trace (eg. there
+			 * was too many events) */
+			fprintf(stderr, "Warning: the FxT trace could not be generated properly\n");
+		}
+
 		written = 1;
 	}
 }