X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/245adf7fb239fc60265a76c40c467aad46fae5cd..0e4aeb6a5d4165c8ba038514f09da26751a93538:/src/instr/instr_paje_types.cpp diff --git a/src/instr/instr_paje_types.cpp b/src/instr/instr_paje_types.cpp index 03995c7aa1..5cd768341c 100644 --- a/src/instr/instr_paje_types.cpp +++ b/src/instr/instr_paje_types.cpp @@ -8,7 +8,6 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY (instr_paje_types, instr, "Paje tracing event system (types)"); -static simgrid::instr::ContainerType* rootType = nullptr; /* the root type */ extern FILE* tracing_file; namespace simgrid { @@ -93,19 +92,19 @@ VariableType::~VariableType() events_.clear(); } -void VariableType::setEvent(double timestamp, Container* container, double value) +void VariableType::setEvent(double timestamp, double value) { - events_.push_back(new VariableEvent(timestamp, container, this, PAJE_SetVariable, value)); + events_.push_back(new VariableEvent(timestamp, issuer_, this, PAJE_SetVariable, value)); } -void VariableType::addEvent(double timestamp, Container* container, double value) +void VariableType::addEvent(double timestamp, double value) { - events_.push_back(new VariableEvent(timestamp, container, this, PAJE_AddVariable, value)); + events_.push_back(new VariableEvent(timestamp, issuer_, this, PAJE_AddVariable, value)); } -void VariableType::subEvent(double timestamp, Container* container, double value) +void VariableType::subEvent(double timestamp, double value) { - events_.push_back(new VariableEvent(timestamp, container, this, PAJE_SubVariable, value)); + events_.push_back(new VariableEvent(timestamp, issuer_, this, PAJE_SubVariable, value)); } LinkType::LinkType(std::string name, std::string alias, Type* father) : ValueType(name, alias, father) @@ -199,17 +198,6 @@ EntityValue* ValueType::getEntityValue(std::string name) return ret->second; } -ContainerType* Type::createRootType() -{ - rootType = new ContainerType("0"); - return rootType; -} - -ContainerType* Type::getRootType() -{ - return rootType; -} - ContainerType* Type::getOrCreateContainerType(std::string name) { auto cont = children_.find(name);