- 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
- container_t msg = getContainer(task->name);
- xbt_assert3(xbt_dict_get_or_null (tasks_created, 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);
- msg = newContainer(task->name, INSTR_MSG_TASK, host_container);
- type_t type = getType (task->category);
- if (!type){
- type = newVariableType(task->category, TYPE_VARIABLE, NULL, msg->type);
- }
- pajeSetVariable(SIMIX_get_clock(), type->id, msg->id, "1");
-
- //FIXME
- //pajePushState(MSG_get_clock(), "task-state", name, "created");
- xbt_dict_set (tasks_created, task->name, xbt_strdup("1"), xbt_free);
- }