Explorar o código

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

Nathalie Furmento %!s(int64=4) %!d(string=hai) anos
pai
achega
426d606c7f
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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