Browse Source

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

Nathalie Furmento 4 years ago
parent
commit
426d606c7f
1 changed files with 1 additions and 0 deletions
  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