- container_t container = new simgrid::instr::HostContainer(host, currentContainer.back());
- container_t root = simgrid::instr::Container::getRoot();
-
- if ((TRACE_categorized() || TRACE_uncategorized() || TRACE_platform()) && (not TRACE_disable_speed())) {
- simgrid::instr::VariableType* power = container->type_->getOrCreateVariableType("power", "");
- power->setCallingContainer(container);
- power->setEvent(0, host.getSpeed());
- }
-
- if (TRACE_uncategorized())
- container->type_->getOrCreateVariableType("power_used", "0.5 0.5 0.5");
-
- if (TRACE_smpi_is_enabled() && TRACE_smpi_is_grouped()) {
- simgrid::instr::ContainerType* mpi = container->type_->getOrCreateContainerType("MPI");
- mpi->getOrCreateStateType("MPI_STATE");
- // TODO See if we can move this to the LoadBalancer plugin
- root->type_->getOrCreateLinkType("MIGRATE_LINK", mpi, mpi);
- mpi->getOrCreateStateType("MIGRATE_STATE");
- }
-
- if (TRACE_actor_is_enabled()) {
- simgrid::instr::ContainerType* actor = container->type_->getOrCreateContainerType("ACTOR");
- simgrid::instr::StateType* state = actor->getOrCreateStateType("ACTOR_STATE");
- state->addEntityValue("suspend", "1 0 1");
- state->addEntityValue("sleep", "1 1 0");
- state->addEntityValue("receive", "1 0 0");
- state->addEntityValue("send", "0 0 1");
- state->addEntityValue("task_execute", "0 1 1");
- root->type_->getOrCreateLinkType("ACTOR_LINK", actor, actor);
- root->type_->getOrCreateLinkType("ACTOR_TASK_LINK", actor, actor);
- }
-
- if (TRACE_vm_is_enabled()) {
- simgrid::instr::ContainerType* msg_vm = container->type_->getOrCreateContainerType("MSG_VM");
- simgrid::instr::StateType* state = msg_vm->getOrCreateStateType("MSG_VM_STATE");
- state->addEntityValue("suspend", "1 0 1");
- state->addEntityValue("sleep", "1 1 0");
- state->addEntityValue("receive", "1 0 0");
- state->addEntityValue("send", "0 0 1");
- state->addEntityValue("task_execute", "0 1 1");
- root->type_->getOrCreateLinkType("MSG_VM_LINK", msg_vm, msg_vm);
- root->type_->getOrCreateLinkType("MSG_VM_ACTOR_LINK", msg_vm, msg_vm);
- }