Browse Source

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 years ago
parent
commit
d8b354babf
1 changed files with 2 additions and 6 deletions
  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)