- container_t process_container = PJ_container_get (instr_process_id(process, str, len));
- type_t type = PJ_type_get ("MSG_PROCESS_STATE", process_container->type);
- new_pajePopState (MSG_get_clock(), process_container, type);
- }
-}
-
-void TRACE_msg_process_end(msg_process_t process)
-{
- if (TRACE_msg_process_is_enabled()) {
- int len = INSTR_DEFAULT_STR_SIZE;
- char str[INSTR_DEFAULT_STR_SIZE];
-
- //that's the end, let's destroy it
- container_t container = PJ_container_get (instr_process_id(process, str, len));
- PJ_container_remove_from_parent (container);
- PJ_container_free (container);
+ container_t process_container = simgrid::instr::Container::byName(instr_process_id(process, str, len));
+ simgrid::instr::Type* type = process_container->type_->getChild("MSG_PROCESS_STATE");
+ new simgrid::instr::PopStateEvent(MSG_get_clock(), process_container, type);