type = newVariableType(category, TYPE_VARIABLE, color, msg->type);
}
pajeSetVariable(SIMIX_get_clock(), type->id, msg->id, "1");
+
+ type = getType ("MSG_PROCESS_STATE");
+ pajeSetState (MSG_get_clock(), type->id, msg->id, "executing");
}
/*
TRACE_msg_process_is_enabled() &&
process->category)) return;
- //FIXME
- //pajeSetState(MSG_get_clock(), "process-state", name, "suspend");
+ container_t process_container = getContainer (process->name);
+ type_t type = getType ("MSG_PROCESS_STATE");
+ pajePushState (MSG_get_clock(), type->id, process_container->id, "suspend");
}
void TRACE_msg_process_resume(m_process_t process)
TRACE_msg_process_is_enabled() &&
process->category)) return;
- //FIXME
- //pajeSetState(MSG_get_clock(), "process-state", name, "executing");
+ container_t process_container = getContainer (process->name);
+ type_t type = getType ("MSG_PROCESS_STATE");
+ pajePopState (MSG_get_clock(), type->id, process_container->id);
}
void TRACE_msg_process_sleep_in(m_process_t process)
TRACE_msg_process_is_enabled() &&
process->category)) return;
- //FIXME
- //pajeSetState(MSG_get_clock(), "process-state", name, "sleep");
+ container_t process_container = getContainer (process->name);
+ type_t type = getType ("MSG_PROCESS_STATE");
+ pajePushState (MSG_get_clock(), type->id, process_container->id, "sleep");
}
void TRACE_msg_process_sleep_out(m_process_t process)
TRACE_msg_process_is_enabled() &&
process->category)) return;
- //FIXME
- //pajeSetState(MSG_get_clock(), "process-state", name, "executing");
+ container_t process_container = getContainer (process->name);
+ type_t type = getType ("MSG_PROCESS_STATE");
+ pajePopState (MSG_get_clock(), type->id, process_container->id);
}
void TRACE_msg_process_end(m_process_t process)
}
pajeSetVariable(SIMIX_get_clock(), type->id, msg->id, "1");
- //FIXME
- //pajePushState(MSG_get_clock(), "task-state", name, "created");
+ type = getType ("MSG_TASK_STATE");
+ pajePushState (MSG_get_clock(), type->id, msg->id, "created");
+
xbt_dict_set (tasks_created, task->name, xbt_strdup("1"), xbt_free);
}
}
DEBUG3("EXEC,in %p, %lld, %s", task, task->counter, task->category);
- //FIXME
- //pajePushState(MSG_get_clock(), "task-state", name, "execute");
+ container_t task_container = getContainer (task->name);
+ type_t type = getType ("MSG_TASK_STATE");
+ pajePushState (MSG_get_clock(), type->id, task_container->id, "MSG_task_execute");
}
void TRACE_msg_task_execute_end(m_task_t task)
DEBUG3("EXEC,out %p, %lld, %s", task, task->counter, task->category);
- //FIXME
- //pajePopState(MSG_get_clock(), "task-state", name);
+ container_t task_container = getContainer (task->name);
+ type_t type = getType ("MSG_TASK_STATE");
+ pajePopState (MSG_get_clock(), type->id, task_container->id);
}
/* MSG_task_destroy related functions */
DEBUG3("GET,out %p, %lld, %s", task, task->counter, task->category);
- //FIXME
- //pajePopState(MSG_get_clock(), "task-state", name);
-
//FIXME
//if (TRACE_msg_volume_is_enabled()){
// TRACE_msg_volume_end(task);
container_t msg = newContainer(task->name, INSTR_MSG_TASK, host_container);
type_t type = getType (task->category);
pajeSetVariable(SIMIX_get_clock(), type->id, msg->id, "1");
+
+ type = getType ("MSG_TASK_STATE");
+ pajePushState (MSG_get_clock(), type->id, msg->id, "created");
+
+ //FIXME: pajeEndLink
}
/* MSG_task_put related functions */
DEBUG3("PUT,in %p, %lld, %s", task, task->counter, task->category);
- destroyContainer (getContainer(task->name));
+ container_t msg = getContainer (task->name);
+ type_t type = getType ("MSG_TASK_STATE");
+ pajePopState (MSG_get_clock(), type->id, msg->id);
- //FIXME
- //pajePopState(MSG_get_clock(), "task-state", name);
- //pajePushState(MSG_get_clock(), "task-state", name, "communicate");
+ //FIXME: pajeStartLink
+
+ destroyContainer (msg);
//FIXME
//if (TRACE_msg_volume_is_enabled()){