Browse Source

Add starpu_fxt_trace_user_event_string

Samuel Thibault 9 years ago
parent
commit
65da8d6979
3 changed files with 12 additions and 0 deletions
  1. 4 0
      doc/doxygen/chapters/api/fxt_support.doxy
  2. 1 0
      include/starpu_fxt.h
  3. 7 0
      src/common/fxt.c

+ 4 - 0
doc/doxygen/chapters/api/fxt_support.doxy

@@ -91,5 +91,9 @@ todo
 \ingroup API_FxT_Support
 Add an event in the execution trace if FxT is enabled.
 
+\fn void starpu_fxt_trace_user_event_string(const char *s)
+\ingroup API_FxT_Support
+Add a string event in the execution trace if FxT is enabled.
+
 */
 

+ 1 - 0
include/starpu_fxt.h

@@ -71,6 +71,7 @@ void starpu_fxt_start_profiling(void);
 void starpu_fxt_stop_profiling(void);
 void starpu_fxt_write_data_trace(char *filename_in);
 void starpu_fxt_trace_user_event(unsigned long code);
+void starpu_fxt_trace_user_event_string(const char *s);
 
 #ifdef __cplusplus
 }

+ 7 - 0
src/common/fxt.c

@@ -243,3 +243,10 @@ void starpu_fxt_trace_user_event(unsigned long code STARPU_ATTRIBUTE_UNUSED)
 	_STARPU_TRACE_USER_EVENT(code);
 #endif
 }
+
+void starpu_fxt_trace_user_event_string(const char *s)
+{
+#ifdef STARPU_USE_FXT
+	_STARPU_TRACE_EVENT(s);
+#endif
+}