- DEBUG3("MSG task %p(%s), category %s", task, task->name, task->category);
-
- if (TRACE_msg_task_is_enabled()){
- m_host_t host = MSG_host_self();
- container_t host_container = getContainer(host->name);
- //check to see if there is a container with the task->name
- xbt_assert3(getContainer(task->name) == NULL,
- "Task %p(%s). Tracing already knows a task with name %s."
- "The name of each task must be unique, if --cfg=tracing/msg/task:1 is used.", task, task->name, task->name);
- container_t msg = newContainer(task->name, INSTR_MSG_TASK, host_container);
- type_t type = getType (task->category);
- if (!type){
- type = getVariableType(task->category, NULL, msg->type);
- }
- new_pajeSetVariable (SIMIX_get_clock(), msg, type, 1);
-
- type = getType ("MSG_TASK_STATE");
- new_pajePushState (MSG_get_clock(), msg, type, "created");
- }