Quellcode durchsuchen

Fix restarting recording an fxt trace

Samuel Thibault vor 12 Jahren
Ursprung
Commit
d44004556b
1 geänderte Dateien mit 3 neuen und 1 gelöschten Zeilen
  1. 3 1
      src/common/fxt.c

+ 3 - 1
src/common/fxt.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2009-2012  Université de Bordeaux 1
+ * Copyright (C) 2009-2013  Université de Bordeaux 1
  * Copyright (C) 2010, 2011, 2012  Centre National de la Recherche Scientifique
  *
  * StarPU is free software; you can redistribute it and/or modify
@@ -114,6 +114,7 @@ void _starpu_init_fxt_profiling(unsigned no_auto_profile)
 	if (!_starpu_fxt_started)
 	{
 		_starpu_fxt_started = 1;
+		_starpu_written = 0;
 		_starpu_profile_set_tracefile(NULL);
 	}
 
@@ -188,6 +189,7 @@ void _starpu_stop_fxt_profiling(void)
 		}
 
 		_starpu_written = 1;
+		_starpu_fxt_started = 0;
 	}
 }