/* instr_routing.c */
void instr_routing_define_callbacks ();
-void instr_new_variable_type (const char *new_typename, const char *color);
-void instr_new_user_variable_type (const char *father_type, const char *new_typename, const char *color);
-void instr_new_user_state_type (const char *father_type, const char *new_typename);
-void instr_new_value_for_user_state_type (const char *_typename, const char *value, const char *color);
int instr_platform_traced ();
xbt_graph_t instr_routing_platform_graph ();
void instr_routing_platform_graph_export_graphviz (xbt_graph_t g, const char *filename);
{
container_t container = simgrid::instr::Container::byName(host);
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 */
+ simgrid::instr::Value* val = simgrid::instr::Value::byNameOrCreate(value_str, "", type);
new simgrid::instr::SetStateEvent(MSG_get_clock(), container, type, val);
}
{
container_t container = simgrid::instr::Container::byName(host);
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 */
+ simgrid::instr::Value* val = simgrid::instr::Value::byNameOrCreate(value_str, "", type);
new simgrid::instr::PushStateEvent(MSG_get_clock(), container, type, val);
}
XBT_DEBUG("%s: ends", __FUNCTION__);
}
-void buffer_debug(std::vector<simgrid::instr::PajeEvent*>* buf);
void buffer_debug(std::vector<simgrid::instr::PajeEvent*>* buf)
{
return;
}
}
-
simgrid::instr::SetVariableEvent::SetVariableEvent(double timestamp, container_t container, Type* type, double value)
: simgrid::instr::PajeEvent::PajeEvent(container, type, timestamp, PAJE_SetVariable), value(value)
{
simgrid::instr::PushStateEvent::PushStateEvent(double timestamp, container_t container, Type* type, Value* val)
: PushStateEvent(timestamp, container, type, val, nullptr)
{}
+
void simgrid::instr::PushStateEvent::print()
{
if (instr_fmt_type == instr_fmt_paje) {
XBT_PRIVATE long long int instr_new_paje_id();
XBT_PUBLIC(container_t) PJ_container_get_root ();
XBT_PUBLIC(void) PJ_container_set_root (container_t root);
+void instr_new_variable_type(std::string new_typename, const char* color);
+void instr_new_user_variable_type(std::string father_type, std::string new_typename, const char* color);
+void instr_new_user_state_type(std::string father_type, std::string new_typename);
+void instr_new_value_for_user_state_type(std::string new_typename, const char* value, const char* color);
/* instr_config.c */
XBT_PRIVATE void TRACE_TI_start();
/*
* user categories support
*/
-static void recursiveNewVariableType(const char* new_typename, const char* color, simgrid::instr::Type* root)
+static void recursiveNewVariableType(std::string new_typename, const char* color, simgrid::instr::Type* root)
{
if (root->getName() == "HOST" || root->getName() == "MSG_VM")
root->getOrCreateVariableType(std::string("p") + new_typename, color == nullptr ? "" : color);
}
}
-void instr_new_variable_type (const char *new_typename, const char *color)
+void instr_new_variable_type(std::string new_typename, const char* color)
{
recursiveNewVariableType(new_typename, color, simgrid::instr::Type::getRootType());
}
-static void recursiveNewUserVariableType(const char* father_type, const char* new_typename, const char* color,
+static void recursiveNewUserVariableType(std::string father_type, std::string new_typename, const char* color,
simgrid::instr::Type* root)
{
if (root->getName() == father_type) {
recursiveNewUserVariableType(father_type, new_typename, color, elm.second);
}
-void instr_new_user_variable_type (const char *father_type, const char *new_typename, const char *color)
+void instr_new_user_variable_type(std::string father_type, std::string new_typename, const char* color)
{
recursiveNewUserVariableType(father_type, new_typename, color, simgrid::instr::Type::getRootType());
}
-static void recursiveNewUserStateType(const char* father_type, const char* new_typename, simgrid::instr::Type* root)
+static void recursiveNewUserStateType(std::string father_type, std::string new_typename, simgrid::instr::Type* root)
{
if (root->getName() == father_type) {
root->getOrCreateStateType(new_typename);
recursiveNewUserStateType(father_type, new_typename, elm.second);
}
-void instr_new_user_state_type (const char *father_type, const char *new_typename)
+void instr_new_user_state_type(std::string father_type, std::string new_typename)
{
recursiveNewUserStateType(father_type, new_typename, simgrid::instr::Type::getRootType());
}
-static void recursiveNewValueForUserStateType(const char* type_name, const char* val, const char* color,
+static void recursiveNewValueForUserStateType(std::string type_name, const char* val, const char* color,
simgrid::instr::Type* root)
{
if (root->getName() == type_name)
recursiveNewValueForUserStateType(type_name, val, color, elm.second);
}
-void instr_new_value_for_user_state_type (const char *type_name, const char *value, const char *color)
+void instr_new_value_for_user_state_type(std::string type_name, const char* value, const char* color)
{
recursiveNewValueForUserStateType(type_name, value, color, simgrid::instr::Type::getRootType());
}