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) {
char* process_id = nullptr;
// FIXME: dirty extract "rank-" from the name, as we want the bare process id here
- if (strstr(container->name_.c_str(), "rank-") == nullptr)
- process_id = xbt_strdup(container->name_.c_str());
+ if (container->getName().find("rank-") != 0)
+ process_id = xbt_strdup(container->getCname());
else
- process_id = xbt_strdup(container->name_.c_str() + 5);
+ process_id = xbt_strdup(container->getCname() + 5);
FILE* trace_file = tracing_files.at(container);