/** @brief Seal your netzone once you're done adding content, and before routing stuff through it */
virtual void seal();
const char* getCname();
+ std::string getName() { return name_; }
NetZone* getFather();
std::vector<NetZone*>* getChildren(); // Sub netzones
if (not mark_value)
THROWF (tracing_error, 1, "mark_value is nullptr");
- simgrid::instr::Type* type = PJ_type_get_root()->getChild(mark_type);
+ simgrid::instr::Type* type = PJ_type_get_root()->byName(mark_type);
if (not type) {
THROWF (tracing_error, 1, "mark_type with name (%s) is not declared", mark_type);
}
THROWF (tracing_error, 1, "mark_value is nullptr");
//check if mark_type is already declared
- simgrid::instr::Type* type = PJ_type_get_root()->getChild(mark_type);
+ simgrid::instr::Type* type = PJ_type_get_root()->byName(mark_type);
if (not type) {
THROWF (tracing_error, 1, "mark_type with name (%s) is not declared", mark_type);
}
char valuestr[100];
snprintf(valuestr, 100, "%g", value);
container_t container = simgrid::instr::Container::byName(resource);
- simgrid::instr::Type* type = container->type_->getChild(variable);
+ simgrid::instr::Type* type = container->type_->byName(variable);
switch (what){
case INSTR_US_SET:
new simgrid::instr::SetVariableEvent(time, container, type, value);
void TRACE_host_set_state(const char* host, const char* state, const char* value_str)
{
container_t container = simgrid::instr::Container::byName(host);
- simgrid::instr::Type* type = container->type_->getChild(state);
+ simgrid::instr::Type* type = container->type_->byName(state);
simgrid::instr::Value* val = simgrid::instr::Value::byNameOrCreate(
value_str, "", type); /* if user didn't declare a value with a color, use no color */
new simgrid::instr::SetStateEvent(MSG_get_clock(), container, type, val);
void TRACE_host_push_state(const char* host, const char* state, const char* value_str)
{
container_t container = simgrid::instr::Container::byName(host);
- simgrid::instr::Type* type = container->type_->getChild(state);
+ simgrid::instr::Type* type = container->type_->byName(state);
simgrid::instr::Value* val = simgrid::instr::Value::byNameOrCreate(
value_str, "", type); /* if user didn't declare a value with a color, use no color */
new simgrid::instr::PushStateEvent(MSG_get_clock(), container, type, val);
void TRACE_host_pop_state (const char *host, const char *state)
{
container_t container = simgrid::instr::Container::byName(host);
- simgrid::instr::Type* type = container->type_->getChild(state);
+ simgrid::instr::Type* type = container->type_->byName(state);
new simgrid::instr::PopStateEvent(MSG_get_clock(), container, type);
}
return rootType;
}
-simgrid::instr::Type::Type(std::string name, const char* key, std::string color, e_entity_types kind, Type* father)
+namespace simgrid {
+namespace instr {
+
+Type::Type(std::string name, const char* key, std::string color, e_entity_types kind, Type* father)
: name_(name), color_(color), kind_(kind), father_(father)
{
if (name.empty() || key == nullptr) {
THROWF(tracing_error, 0, "can't create a new type with name or key equal nullptr");
}
- this->id_ = std::to_string(instr_new_paje_id());
+ id_ = std::to_string(instr_new_paje_id());
if (father != nullptr){
father->children_.insert({key, this});
}
}
-simgrid::instr::Type::~Type()
+Type::~Type()
{
for (auto elm : values_) {
XBT_DEBUG("free value %s, child of %s", elm.second->getCname(), elm.second->father_->getCname());
}
}
-simgrid::instr::Type* simgrid::instr::Type::getChild(std::string name)
+Type* Type::byName(std::string name)
{
- simgrid::instr::Type* ret = this->getChildOrNull(name);
+ Type* ret = this->getChildOrNull(name);
if (ret == nullptr)
THROWF(tracing_error, 2, "type with name (%s) not found in father type (%s)", name.c_str(), getCname());
return ret;
}
-simgrid::instr::Type* simgrid::instr::Type::getChildOrNull(std::string name)
+Type* Type::getChildOrNull(std::string name)
{
xbt_assert(not name.empty(), "can't get type with a nullptr name");
- simgrid::instr::Type* ret = nullptr;
+ Type* ret = nullptr;
for (auto elm : children_) {
if (elm.second->name_ == name) {
if (ret != nullptr) {
return ret;
}
-simgrid::instr::Type* simgrid::instr::Type::containerNew(const char* name, simgrid::instr::Type* father)
+Type* simgrid::instr::Type::containerNew(const char* name, Type* father)
{
if (name == nullptr){
THROWF (tracing_error, 0, "can't create a container type with a nullptr name");
return ret;
}
-simgrid::instr::Type* simgrid::instr::Type::eventNew(const char* name, simgrid::instr::Type* father)
+Type* Type::eventNew(const char* name, Type* father)
{
if (name == nullptr){
THROWF (tracing_error, 0, "can't create an event type with a nullptr name");
return ret;
}
-simgrid::instr::Type* simgrid::instr::Type::variableNew(const char* name, std::string color,
- simgrid::instr::Type* father)
+Type* Type::variableNew(const char* name, std::string color, Type* father)
{
if (name == nullptr){
THROWF (tracing_error, 0, "can't create a variable type with a nullptr name");
return ret;
}
-simgrid::instr::Type* simgrid::instr::Type::linkNew(const char* name, Type* father, Type* source, Type* dest)
+Type* Type::linkNew(const char* name, Type* father, Type* source, Type* dest)
{
if (name == nullptr){
THROWF (tracing_error, 0, "can't create a link type with a nullptr name");
return ret;
}
-simgrid::instr::Type* simgrid::instr::Type::stateNew(const char* name, Type* father)
+Type* Type::stateNew(const char* name, Type* father)
{
if (name == nullptr){
THROWF (tracing_error, 0, "can't create a state type with a nullptr name");
LogStateTypeDefinition(ret);
return ret;
}
+}
+}
std::map<std::string, Value*> values_; // valid for all types except variable and container
Type(std::string name, const char* key, std::string color, e_entity_types kind, Type* father);
~Type();
- Type* getChild(std::string name);
+ Type* byName(std::string name);
Type* getChildOrNull(std::string name);
static Type* containerNew(const char* name, Type* father);
// check if key exists: if it doesn't, set the variable to zero and mark this in the dict
if (platform_variables.find(key) == platform_variables.end()) {
container_t container = simgrid::instr::Container::byName(resource);
- simgrid::instr::Type* type = container->type_->getChild(variable);
+ simgrid::instr::Type* type = container->type_->byName(variable);
new simgrid::instr::SetVariableEvent(now, container, type, 0);
platform_variables[key] = std::string("");
}
if (TRACE_uncategorized()){
XBT_DEBUG("UNCAT LINK [%f - %f] %s bandwidth_used %f", now, now+delta, resource, value);
container_t container = simgrid::instr::Container::byName(resource);
- simgrid::instr::Type* type = container->type_->getChild("bandwidth_used");
+ simgrid::instr::Type* type = container->type_->byName("bandwidth_used");
instr_event (now, delta, type, container, value);
}
snprintf (category_type, INSTR_DEFAULT_STR_SIZE, "b%s", category);
XBT_DEBUG("CAT LINK [%f - %f] %s %s %f", now, now+delta, resource, category_type, value);
container_t container = simgrid::instr::Container::byName(resource);
- simgrid::instr::Type* type = container->type_->getChild(category_type);
+ simgrid::instr::Type* type = container->type_->byName(category_type);
instr_event (now, delta, type, container, value);
}
}
//trace uncategorized host utilization
if (TRACE_uncategorized()){
XBT_DEBUG("UNCAT HOST [%f - %f] %s power_used %f", now, now+delta, resource, value);
- simgrid::instr::Type* type = container->type_->getChild("power_used");
+ simgrid::instr::Type* type = container->type_->byName("power_used");
instr_event (now, delta, type, container, value);
}
char category_type[INSTR_DEFAULT_STR_SIZE];
snprintf (category_type, INSTR_DEFAULT_STR_SIZE, "p%s", category);
XBT_DEBUG("CAT HOST [%f - %f] %s %s %f", now, now+delta, resource, category_type, value);
- simgrid::instr::Type* type = container->type_->getChild(category_type);
+ simgrid::instr::Type* type = container->type_->byName(category_type);
instr_event (now, delta, type, container, value);
}
}
//start link
container_t msg = simgrid::instr::Container::byName(instr_process_id(process, str, len));
- simgrid::instr::Type* type = PJ_type_get_root()->getChild("MSG_PROCESS_LINK");
+ simgrid::instr::Type* type = PJ_type_get_root()->byName("MSG_PROCESS_LINK");
new simgrid::instr::StartLinkEvent(MSG_get_clock(), PJ_container_get_root(), type, msg, "M", key);
//destroy existing container of this process
//end link
msg = simgrid::instr::Container::byName(instr_process_id(process, str, len));
- type = PJ_type_get_root()->getChild("MSG_PROCESS_LINK");
+ type = PJ_type_get_root()->byName("MSG_PROCESS_LINK");
new simgrid::instr::EndLinkEvent(MSG_get_clock(), PJ_container_get_root(), type, msg, "M", key);
}
}
char str[INSTR_DEFAULT_STR_SIZE];
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");
+ simgrid::instr::Type* type = process_container->type_->byName("MSG_PROCESS_STATE");
simgrid::instr::Value* val = simgrid::instr::Value::byName("suspend", type);
new simgrid::instr::PushStateEvent(MSG_get_clock(), process_container, type, val);
}
char str[INSTR_DEFAULT_STR_SIZE];
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");
+ simgrid::instr::Type* type = process_container->type_->byName("MSG_PROCESS_STATE");
new simgrid::instr::PopStateEvent(MSG_get_clock(), process_container, type);
}
}
char str[INSTR_DEFAULT_STR_SIZE];
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");
+ simgrid::instr::Type* type = process_container->type_->byName("MSG_PROCESS_STATE");
simgrid::instr::Value* val = simgrid::instr::Value::byName("sleep", type);
new simgrid::instr::PushStateEvent(MSG_get_clock(), process_container, type, val);
}
char str[INSTR_DEFAULT_STR_SIZE];
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");
+ simgrid::instr::Type* type = process_container->type_->byName("MSG_PROCESS_STATE");
new simgrid::instr::PopStateEvent(MSG_get_clock(), process_container, type);
}
}
char str[INSTR_DEFAULT_STR_SIZE];
container_t process_container = simgrid::instr::Container::byName(instr_process_id(MSG_process_self(), str, len));
- simgrid::instr::Type* type = process_container->type_->getChild("MSG_PROCESS_STATE");
+ simgrid::instr::Type* type = process_container->type_->byName("MSG_PROCESS_STATE");
simgrid::instr::Value* val = simgrid::instr::Value::byName("task_execute", type);
new simgrid::instr::PushStateEvent(MSG_get_clock(), process_container, type, val);
}
char str[INSTR_DEFAULT_STR_SIZE];
container_t process_container = simgrid::instr::Container::byName(instr_process_id(MSG_process_self(), str, len));
- simgrid::instr::Type* type = process_container->type_->getChild("MSG_PROCESS_STATE");
+ simgrid::instr::Type* type = process_container->type_->byName("MSG_PROCESS_STATE");
new simgrid::instr::PopStateEvent(MSG_get_clock(), process_container, type);
}
}
char str[INSTR_DEFAULT_STR_SIZE];
container_t process_container = simgrid::instr::Container::byName(instr_process_id(MSG_process_self(), str, len));
- simgrid::instr::Type* type = process_container->type_->getChild("MSG_PROCESS_STATE");
+ simgrid::instr::Type* type = process_container->type_->byName("MSG_PROCESS_STATE");
simgrid::instr::Value* val = simgrid::instr::Value::byName("receive", type);
new simgrid::instr::PushStateEvent(MSG_get_clock(), process_container, type, val);
}
char str[INSTR_DEFAULT_STR_SIZE];
container_t process_container = simgrid::instr::Container::byName(instr_process_id(MSG_process_self(), str, len));
- simgrid::instr::Type* type = process_container->type_->getChild("MSG_PROCESS_STATE");
+ simgrid::instr::Type* type = process_container->type_->byName("MSG_PROCESS_STATE");
new simgrid::instr::PopStateEvent(MSG_get_clock(), process_container, type);
char key[INSTR_DEFAULT_STR_SIZE];
snprintf (key, INSTR_DEFAULT_STR_SIZE, "p%lld", task->counter);
- type = PJ_type_get_root()->getChild("MSG_PROCESS_TASK_LINK");
+ type = PJ_type_get_root()->byName("MSG_PROCESS_TASK_LINK");
new simgrid::instr::EndLinkEvent(MSG_get_clock(), PJ_container_get_root(), type, process_container, "SR", key);
}
}
char str[INSTR_DEFAULT_STR_SIZE];
container_t process_container = simgrid::instr::Container::byName(instr_process_id(MSG_process_self(), str, len));
- simgrid::instr::Type* type = process_container->type_->getChild("MSG_PROCESS_STATE");
+ simgrid::instr::Type* type = process_container->type_->byName("MSG_PROCESS_STATE");
simgrid::instr::Value* val = simgrid::instr::Value::byName("send", type);
new simgrid::instr::PushStateEvent(MSG_get_clock(), process_container, type, val);
char key[INSTR_DEFAULT_STR_SIZE];
snprintf (key, INSTR_DEFAULT_STR_SIZE, "p%lld", task->counter);
- type = PJ_type_get_root()->getChild("MSG_PROCESS_TASK_LINK");
+ type = PJ_type_get_root()->byName("MSG_PROCESS_TASK_LINK");
new simgrid::instr::StartLinkEvent(MSG_get_clock(), PJ_container_get_root(), type, process_container, "SR", key);
}
char str[INSTR_DEFAULT_STR_SIZE];
container_t process_container = simgrid::instr::Container::byName(instr_process_id(MSG_process_self(), str, len));
- simgrid::instr::Type* type = process_container->type_->getChild("MSG_PROCESS_STATE");
+ simgrid::instr::Type* type = process_container->type_->byName("MSG_PROCESS_STATE");
new simgrid::instr::PopStateEvent(MSG_get_clock(), process_container, type);
}
}
vm->start();
if (TRACE_msg_vm_is_enabled()) {
container_t vm_container = simgrid::instr::Container::byName(vm->getName());
- simgrid::instr::Type* type = vm_container->type_->getChild("MSG_VM_STATE");
+ simgrid::instr::Type* type = vm_container->type_->byName("MSG_VM_STATE");
simgrid::instr::Value* val = simgrid::instr::Value::byNameOrCreate("start", "0 0 1", type); // start is blue
new simgrid::instr::PushStateEvent(MSG_get_clock(), vm_container, type, val);
}
// start link
container_t msg = simgrid::instr::Container::byName(vm->getName());
- simgrid::instr::Type* type = PJ_type_get_root()->getChild("MSG_VM_LINK");
+ simgrid::instr::Type* type = PJ_type_get_root()->byName("MSG_VM_LINK");
new simgrid::instr::StartLinkEvent(MSG_get_clock(), PJ_container_get_root(), type, msg, "M", key);
// destroy existing container of this vm
// end link
msg = simgrid::instr::Container::byName(vm->getName());
- type = PJ_type_get_root()->getChild("MSG_VM_LINK");
+ type = PJ_type_get_root()->byName("MSG_VM_LINK");
new simgrid::instr::EndLinkEvent(MSG_get_clock(), PJ_container_get_root(), type, msg, "M", key);
}
if (TRACE_msg_vm_is_enabled()) {
container_t vm_container = simgrid::instr::Container::byName(vm->getName());
- simgrid::instr::Type* type = vm_container->type_->getChild("MSG_VM_STATE");
+ simgrid::instr::Type* type = vm_container->type_->byName("MSG_VM_STATE");
simgrid::instr::Value* val = simgrid::instr::Value::byNameOrCreate("suspend", "1 0 0", type); // suspend is red
new simgrid::instr::PushStateEvent(MSG_get_clock(), vm_container, type, val);
}
if (TRACE_msg_vm_is_enabled()) {
container_t vm_container = simgrid::instr::Container::byName(vm->getName());
- simgrid::instr::Type* type = vm_container->type_->getChild("MSG_VM_STATE");
+ simgrid::instr::Type* type = vm_container->type_->byName("MSG_VM_STATE");
new simgrid::instr::PopStateEvent(MSG_get_clock(), vm_container, type);
}
}
char str[INSTR_DEFAULT_STR_SIZE];
smpi_container(rank, str, INSTR_DEFAULT_STR_SIZE);
container_t container = simgrid::instr::Container::byName(str);
- simgrid::instr::Type* type = container->type_->getChild("MPI_STATE");
+ simgrid::instr::Type* type = container->type_->byName("MPI_STATE");
const char *color = instr_find_color (operation);
simgrid::instr::Value* val = simgrid::instr::Value::byNameOrCreate(operation, color, type);
new simgrid::instr::PushStateEvent(SIMIX_get_clock(), container, type, val, static_cast<void*>(extra));
char str[INSTR_DEFAULT_STR_SIZE];
smpi_container(rank, str, INSTR_DEFAULT_STR_SIZE);
container_t container = simgrid::instr::Container::byName(str);
- simgrid::instr::Type* type = container->type_->getChild("MPI_STATE");
+ simgrid::instr::Type* type = container->type_->byName("MPI_STATE");
new simgrid::instr::PopStateEvent(SIMIX_get_clock(), container, type);
}
char str[INSTR_DEFAULT_STR_SIZE];
smpi_container(rank, str, INSTR_DEFAULT_STR_SIZE);
container_t container = simgrid::instr::Container::byName(str);
- simgrid::instr::Type* type = container->type_->getChild("MPI_STATE");
+ simgrid::instr::Type* type = container->type_->byName("MPI_STATE");
const char* color = instr_find_color("computing");
new simgrid::instr::PushStateEvent(SIMIX_get_clock(), container, type,
simgrid::instr::Value::byNameOrCreate("computing", color, type));
char str[INSTR_DEFAULT_STR_SIZE];
smpi_container(rank, str, INSTR_DEFAULT_STR_SIZE);
container_t container = simgrid::instr::Container::byName(str);
- simgrid::instr::Type* type = container->type_->getChild("MPI_STATE");
+ simgrid::instr::Type* type = container->type_->byName("MPI_STATE");
simgrid::instr::Value* val = simgrid::instr::Value::byNameOrCreate("computing", "", type);
new simgrid::instr::PushStateEvent(SIMIX_get_clock(), container, type, val, static_cast<void*>(extra));
}
char str[INSTR_DEFAULT_STR_SIZE];
smpi_container(rank, str, INSTR_DEFAULT_STR_SIZE);
container_t container = simgrid::instr::Container::byName(str);
- simgrid::instr::Type* type = container->type_->getChild("MPI_STATE");
+ simgrid::instr::Type* type = container->type_->byName("MPI_STATE");
new simgrid::instr::PopStateEvent(SIMIX_get_clock(), container, type);
}
char str[INSTR_DEFAULT_STR_SIZE];
smpi_container(rank, str, INSTR_DEFAULT_STR_SIZE);
container_t container = simgrid::instr::Container::byName(str);
- simgrid::instr::Type* type = container->type_->getChild("MPI_STATE");
+ simgrid::instr::Type* type = container->type_->byName("MPI_STATE");
const char *color = instr_find_color ("sleeping");
simgrid::instr::Value* val = simgrid::instr::Value::byNameOrCreate("sleeping", color, type);
new simgrid::instr::PushStateEvent(SIMIX_get_clock(), container, type, val);
char str[INSTR_DEFAULT_STR_SIZE];
smpi_container(rank, str, INSTR_DEFAULT_STR_SIZE);
container_t container = simgrid::instr::Container::byName(str);
- simgrid::instr::Type* type = container->type_->getChild("MPI_STATE");
+ simgrid::instr::Type* type = container->type_->byName("MPI_STATE");
simgrid::instr::Value* val = simgrid::instr::Value::byNameOrCreate("sleeping", "", type);
new simgrid::instr::PushStateEvent(SIMIX_get_clock(), container, type, val, static_cast<void*>(extra));
}
char str[INSTR_DEFAULT_STR_SIZE];
smpi_container(rank, str, INSTR_DEFAULT_STR_SIZE);
container_t container = simgrid::instr::Container::byName(str);
- simgrid::instr::Type* type = container->type_->getChild("MPI_STATE");
+ simgrid::instr::Type* type = container->type_->byName("MPI_STATE");
new simgrid::instr::PopStateEvent(SIMIX_get_clock(), container, type);
}
char str[INSTR_DEFAULT_STR_SIZE];
smpi_container(rank, str, INSTR_DEFAULT_STR_SIZE);
container_t container = simgrid::instr::Container::byName(str);
- simgrid::instr::Type* type = container->type_->getChild("MPI_STATE");
+ simgrid::instr::Type* type = container->type_->byName("MPI_STATE");
simgrid::instr::Value* val = simgrid::instr::Value::byNameOrCreate("test", "", type);
new simgrid::instr::PushStateEvent(SIMIX_get_clock(), container, type, val, static_cast<void*>(extra));
}
char str[INSTR_DEFAULT_STR_SIZE];
smpi_container(rank, str, INSTR_DEFAULT_STR_SIZE);
container_t container = simgrid::instr::Container::byName(str);
- simgrid::instr::Type* type = container->type_->getChild("MPI_STATE");
+ simgrid::instr::Type* type = container->type_->byName("MPI_STATE");
new simgrid::instr::PopStateEvent(SIMIX_get_clock(), container, type);
}
char str[INSTR_DEFAULT_STR_SIZE];
smpi_container(rank, str, INSTR_DEFAULT_STR_SIZE);
container_t container = simgrid::instr::Container::byName(str);
- simgrid::instr::Type* type = container->type_->getChild("MPI_STATE");
+ simgrid::instr::Type* type = container->type_->byName("MPI_STATE");
const char *color = instr_find_color (operation);
simgrid::instr::Value* val = simgrid::instr::Value::byNameOrCreate(operation, color, type);
new simgrid::instr::PushStateEvent(SIMIX_get_clock(), container, type, val, static_cast<void*>(extra));
char str[INSTR_DEFAULT_STR_SIZE];
smpi_container(rank, str, INSTR_DEFAULT_STR_SIZE);
container_t container = simgrid::instr::Container::byName(str);
- simgrid::instr::Type* type = container->type_->getChild("MPI_STATE");
+ simgrid::instr::Type* type = container->type_->byName("MPI_STATE");
new simgrid::instr::PopStateEvent(SIMIX_get_clock(), container, type);
}
char str[INSTR_DEFAULT_STR_SIZE];
smpi_container(src, str, INSTR_DEFAULT_STR_SIZE);
container_t container = simgrid::instr::Container::byName(str);
- simgrid::instr::Type* type = PJ_type_get_root()->getChild("MPI_LINK");
+ simgrid::instr::Type* type = PJ_type_get_root()->byName("MPI_LINK");
XBT_DEBUG("Send tracing from %d to %d, tag %d, with key %s", src, dst, tag, key);
new simgrid::instr::StartLinkEvent(SIMIX_get_clock(), PJ_container_get_root(), type, container, "PTP", key, size);
}
char str[INSTR_DEFAULT_STR_SIZE];
smpi_container(dst, str, INSTR_DEFAULT_STR_SIZE);
container_t container = simgrid::instr::Container::byName(str);
- simgrid::instr::Type* type = PJ_type_get_root()->getChild("MPI_LINK");
+ simgrid::instr::Type* type = PJ_type_get_root()->byName("MPI_LINK");
XBT_DEBUG("Recv tracing from %d to %d, tag %d, with key %s", src, dst, tag, key);
new simgrid::instr::EndLinkEvent(SIMIX_get_clock(), PJ_container_get_root(), type, container, "PTP", key);
}
*/
static void sg_instr_AS_begin(simgrid::s4u::NetZone& netzone)
{
- const char* id = netzone.getCname();
+ std::string id = netzone.getName();
if (PJ_container_get_root() == nullptr){
container_t root = new simgrid::instr::Container(id, simgrid::instr::INSTR_AS, nullptr);
void instr_routing_define_callbacks ()
{
- //always need the call backs to ASes (we need only the root AS),
- //to create the rootContainer and the rootType properly
+ // always need the callbacks to ASes (we need only the root AS), to create the rootContainer and the rootType properly
if (not TRACE_is_enabled())
return;
if (TRACE_needs_platform()) {
{
if (TRACE_categorized() || TRACE_uncategorized() || TRACE_platform()) {
container_t container = simgrid::instr::Container::byName(resource);
- simgrid::instr::Type* type = container->type_->getChild("power");
+ simgrid::instr::Type* type = container->type_->byName("power");
new simgrid::instr::SetVariableEvent(date, container, type, speed);
}
}
{
if (TRACE_categorized() || TRACE_uncategorized() || TRACE_platform()) {
container_t container = simgrid::instr::Container::byName(resource);
- simgrid::instr::Type* type = container->type_->getChild("bandwidth");
+ simgrid::instr::Type* type = container->type_->byName("bandwidth");
new simgrid::instr::SetVariableEvent(date, container, type, bandwidth);
}
}