浏览代码

src/common/fxt.c: set the process id in the fxt trace file as mentioned in the documentation

Nathalie Furmento 4 年之前
父节点
当前提交
426d606c7f
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/common/fxt.c

+ 1 - 0
src/common/fxt.c

@@ -189,6 +189,7 @@ void _starpu_fxt_init_profiling(uint64_t trace_buffer_size)
 
 	_starpu_fxt_started = 1;
 	_starpu_written = 0;
+	_starpu_id = (int)getpid();
 	_starpu_profile_set_tracefile();
 
 #ifdef HAVE_FUT_SET_FILENAME