X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9d6fa71b45fb961b4b221bfe366fdcef9baae37e..dee01a09191bb846eb6174125ef3fa1c450303b4:/src/simix/ActorImpl.cpp diff --git a/src/simix/ActorImpl.cpp b/src/simix/ActorImpl.cpp index 64eb25aa69..95cec9d9f3 100644 --- a/src/simix/ActorImpl.cpp +++ b/src/simix/ActorImpl.cpp @@ -350,9 +350,7 @@ smx_actor_t SIMIX_process_create(const char* name, std::function code, v intrusive_ptr_add_ref(process); /* Tracing the process creation */ if (TRACE_actor_is_enabled()) - new simgrid::instr::Container(instr_pid(process->ciface()), "ACTOR", - simgrid::instr::Container::byName(process->host->getName())); - + simgrid::instr::Container::byName(process->host->getName())->createChild(instr_pid(process->ciface()), "ACTOR"); /* The onCreation() signal must be delayed until there, where the pid and everything is set */ simgrid::s4u::ActorPtr tmp = process->iface(); // Passing this directly to onCreation will lead to crashes simgrid::s4u::Actor::onCreation(tmp); @@ -410,8 +408,7 @@ smx_actor_t SIMIX_process_attach(const char* name, void* data, const char* hostn /* Tracing the process creation */ if (TRACE_actor_is_enabled()) - new simgrid::instr::Container(instr_pid(process->ciface()), "ACTOR", - simgrid::instr::Container::byName(process->host->getName())); + simgrid::instr::Container::byName(process->host->getName())->createChild(instr_pid(process->ciface()), "ACTOR"); auto* context = dynamic_cast(process->context); if (not context)