/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
-#include "private.h"
#include "private.hpp"
#include <cctype>
#include <cstdarg>
container_t container = PJ_container_get (str);
simgrid::instr::Type* type = container->type_->getChild("MPI_STATE");
const char *color = instr_find_color (operation);
- simgrid::instr::Value* val = simgrid::instr::Value::get_or_new(operation, color, type);
+ 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));
}
simgrid::instr::Type* type = container->type_->getChild("MPI_STATE");
const char* color = instr_find_color("computing");
new simgrid::instr::PushStateEvent(SIMIX_get_clock(), container, type,
- simgrid::instr::Value::get_or_new("computing", color, type));
+ simgrid::instr::Value::byNameOrCreate("computing", color, type));
}
void TRACE_smpi_computing_in(int rank, instr_extra_data extra)
smpi_container(rank, str, INSTR_DEFAULT_STR_SIZE);
container_t container = PJ_container_get (str);
simgrid::instr::Type* type = container->type_->getChild("MPI_STATE");
- simgrid::instr::Value* val = simgrid::instr::Value::get_or_new("computing", nullptr, type);
+ simgrid::instr::Value* val = simgrid::instr::Value::byNameOrCreate("computing", "", type);
new simgrid::instr::PushStateEvent(SIMIX_get_clock(), container, type, val, static_cast<void*>(extra));
}
container_t container = PJ_container_get (str);
simgrid::instr::Type* type = container->type_->getChild("MPI_STATE");
const char *color = instr_find_color ("sleeping");
- simgrid::instr::Value* val = simgrid::instr::Value::get_or_new("sleeping", color, type);
+ simgrid::instr::Value* val = simgrid::instr::Value::byNameOrCreate("sleeping", color, type);
new simgrid::instr::PushStateEvent(SIMIX_get_clock(), container, type, val);
}
smpi_container(rank, str, INSTR_DEFAULT_STR_SIZE);
container_t container = PJ_container_get (str);
simgrid::instr::Type* type = container->type_->getChild("MPI_STATE");
- simgrid::instr::Value* val = simgrid::instr::Value::get_or_new("sleeping", nullptr, type);
+ simgrid::instr::Value* val = simgrid::instr::Value::byNameOrCreate("sleeping", "", type);
new simgrid::instr::PushStateEvent(SIMIX_get_clock(), container, type, val, static_cast<void*>(extra));
}
smpi_container(rank, str, INSTR_DEFAULT_STR_SIZE);
container_t container = PJ_container_get (str);
simgrid::instr::Type* type = container->type_->getChild("MPI_STATE");
- simgrid::instr::Value* val = simgrid::instr::Value::get_or_new("test", nullptr, type);
+ simgrid::instr::Value* val = simgrid::instr::Value::byNameOrCreate("test", "", type);
new simgrid::instr::PushStateEvent(SIMIX_get_clock(), container, type, val, static_cast<void*>(extra));
}
container_t container = PJ_container_get (str);
simgrid::instr::Type* type = container->type_->getChild("MPI_STATE");
const char *color = instr_find_color (operation);
- simgrid::instr::Value* val = simgrid::instr::Value::get_or_new(operation, color, type);
+ 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));
}