소스 검색

no need to test for stats env variable, starpu_bus_profiling_helper_display_summary and starpu_worker_profiling_helper_display_summary already test them

Samuel Thibault 12 년 전
부모
커밋
d8b354babf
1개의 변경된 파일2개의 추가작업 그리고 6개의 파일을 삭제
  1. 2 6
      src/core/workers.c

+ 2 - 6
src/core/workers.c

@@ -941,12 +941,8 @@ static void _starpu_kill_all_workers(struct _starpu_machine_config *config)
 
 void starpu_display_stats()
 {
-	const char *stats;
-	if ((stats = getenv("STARPU_BUS_STATS")) && atoi(stats))
-		starpu_bus_profiling_helper_display_summary();
-
-	if ((stats = getenv("STARPU_WORKER_STATS")) && atoi(stats))
-		starpu_worker_profiling_helper_display_summary();
+	starpu_bus_profiling_helper_display_summary();
+	starpu_worker_profiling_helper_display_summary();
 }
 
 void starpu_shutdown(void)