- container->type_->getOrCreateVariableType("bandwidth", "")->setEvent(0, container, link.bandwidth());
- container->type_->getOrCreateVariableType("latency", "")->setEvent(0, container, link.latency());
+ simgrid::instr::VariableType* bandwidth = container->type_->getOrCreateVariableType("bandwidth", "");
+ bandwidth->setCallingContainer(container);
+ bandwidth->setEvent(0, link.bandwidth());
+ simgrid::instr::VariableType* latency = container->type_->getOrCreateVariableType("latency", "");
+ latency->setCallingContainer(container);
+ latency->setEvent(0, link.latency());