Explorar o código

debug/traces: add missing runtime events for trace.rec

Samuel Pitoiset %!s(int64=9) %!d(string=hai) anos
pai
achega
40f6dd5e1c
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      src/debug/traces/starpu_fxt.c

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

@@ -1747,9 +1747,15 @@ static void handle_task_submit_event(struct fxt_ev_64 *ev, struct starpu_fxt_opt
 	{
 		/* Normal worker */
 		if (eventstr)
+		{
 			thread_push_state(timestamp, prefix, tid, eventstr);
+			recfmt_thread_push_state(timestamp, tid, eventstr, "Runtime");
+		}
 		else
+		{
 			thread_pop_state(timestamp, prefix, tid);
+			recfmt_thread_pop_state(timestamp, tid);
+		}
 	}
 	else if (workerid == -2)
 	{