Explorar o código

statistics: group things which belong together

Nathalie Furmento %!s(int64=12) %!d(string=hai) anos
pai
achega
4c627e4437
Modificáronse 2 ficheiros con 13 adicións e 17 borrados
  1. 9 13
      configure.ac
  2. 4 4
      src/core/workers.c

+ 9 - 13
configure.ac

@@ -810,16 +810,6 @@ if test x$enable_fast = xyes; then
 	AC_DEFINE(STARPU_NO_ASSERT, [1], [disable assertions])
 fi
 
-AC_MSG_CHECKING(whether memory status should be displayed)
-AC_ARG_ENABLE(memory-status, [AS_HELP_STRING([--enable-memory-status],
-			     [display memory status at the end of execution])],
-			     enable_memory_status=$enableval, enable_memory_status=no)
-AC_MSG_RESULT($enable_memory_status)
-if test x$enable_memory_status = xyes; then
-        AC_DEFINE(STARPU_MEMORY_STATUS, [1], [display memory status])
-fi
-
-
 AC_MSG_CHECKING(whether debug messages should be displayed)
 AC_ARG_ENABLE(verbose, [AS_HELP_STRING([--enable-verbose],
 			[display verbose debug messages])],
@@ -829,7 +819,6 @@ if test x$enable_verbose = xyes; then
 	AC_DEFINE(STARPU_VERBOSE, [1], [display verbose debug messages])
 fi
 
-
 AC_MSG_CHECKING(whether coverage testing should be enabled)
 AC_ARG_ENABLE(coverage, [AS_HELP_STRING([--enable-coverage],
 			[enable coverage checking])],
@@ -842,7 +831,6 @@ if test x$enable_coverage = xyes; then
 	LDFLAGS="${LDFLAGS} --coverage"
 fi
 
-
 # shall we use FxT to generate trace of the execution ?
 AC_MSG_CHECKING(whether FxT traces should be generated)
 AC_ARG_WITH(fxt, [AS_HELP_STRING([--with-fxt[=<dir>]], [generate fxt traces])],
@@ -927,11 +915,19 @@ AC_ARG_ENABLE(stats, [AS_HELP_STRING([--enable-stats],
 AC_MSG_RESULT($enable_stats)
 AC_SUBST(STATS, $enable_stats)
 AC_SUBST(STARPU_DATA_STATS, $enable_stats)
-
 if test x$enable_stats = xyes; then
         AC_DEFINE(STARPU_DATA_STATS, [1], [enable statistics])
 fi
 
+AC_MSG_CHECKING(whether memory status should be displayed)
+AC_ARG_ENABLE(memory-status, [AS_HELP_STRING([--enable-memory-status],
+			     [display memory status at the end of execution])],
+			     enable_memory_status=$enableval, enable_memory_status=no)
+AC_MSG_RESULT($enable_memory_status)
+if test x$enable_memory_status = xyes; then
+        AC_DEFINE(STARPU_MEMORY_STATUS, [1], [display memory status])
+fi
+
 AC_CHECK_HEADERS([glpk.h])
 STARPU_HAVE_LIBRARY(GLPK, [glpk])
 

+ 4 - 4
src/core/workers.c

@@ -877,15 +877,15 @@ void starpu_shutdown(void)
 
 	starpu_task_wait_for_no_ready();
 
-	_starpu_display_msi_stats();
-	_starpu_display_alloc_cache_stats();
-
 	/* tell all workers to shutdown */
 	_starpu_kill_all_workers(&config);
 
-	_starpu_display_data_stats();
+	_starpu_display_msi_stats();
+	_starpu_display_alloc_cache_stats();
 	_starpu_display_comm_amounts();
 
+	_starpu_display_data_stats();
+
 	starpu_bus_profiling_helper_display_summary();
 	starpu_worker_profiling_helper_display_summary();