소스 검색

The STARPU_FXT_PREFIX environment variable permits to specify where the FxT
traces should be put and their name.

Cédric Augonnet 15 년 전
부모
커밋
66730fef6c
1개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. 6 1
      src/common/fxt.c

+ 6 - 1
src/common/fxt.c

@@ -54,7 +54,12 @@ void start_fxt_profiling(void)
 
 	if (!fxt_started) {
 		fxt_started = 1;
-		profile_set_tracefile("/tmp/prof_file");
+
+		char *fxt_prefix = getenv("STARPU_FXT_PREFIX");
+		if (!fxt_prefix)
+			fxt_prefix = "/tmp/prof_file";
+
+		profile_set_tracefile(fxt_prefix);
 	}
 
 	threadid = syscall(SYS_gettid);