Browse Source

debug/traces: handle program events with trace.rec

This allows to keep track of start/stop profiling program events when
starpu_fxt_{start,stop}_profiling() is used from the program.
Samuel Pitoiset 9 years ago
parent
commit
b555066a51
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/debug/traces/starpu_fxt.c

+ 3 - 0
src/debug/traces/starpu_fxt.c

@@ -2110,6 +2110,9 @@ static void handle_event(struct fxt_ev_64 *ev, struct starpu_fxt_options *option
 		fprintf(out_paje_file, "9	%.9f	prog_event	%sp	%s\n", get_event_time_stamp(ev, options), options->file_prefix, event);
 #endif
 	}
+
+	if (trace_file)
+		recfmt_set_state(get_event_time_stamp(ev, options), "ProgEvent", -1, 0, event, "Program");
 }
 
 static void handle_thread_event(struct fxt_ev_64 *ev, struct starpu_fxt_options *options)