X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f734ec7475682eb90323e804cbcfddd7e4523992..d2d824f563b6a7cc2fb7c8d618c893c8084ab334:/src/instr/instr_paje_trace.cpp diff --git a/src/instr/instr_paje_trace.cpp b/src/instr/instr_paje_trace.cpp index e6825968f7..bc855cb009 100644 --- a/src/instr/instr_paje_trace.cpp +++ b/src/instr/instr_paje_trace.cpp @@ -4,12 +4,12 @@ /* 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 "simgrid/sg_config.h" #include "src/instr/instr_private.hpp" #include "src/instr/instr_smpi.hpp" #include "src/smpi/include/private.hpp" #include "typeinfo" #include "xbt/virtu.h" /* sg_cmdline */ -#include "simgrid/sg_config.h" #include #include @@ -285,16 +285,16 @@ if (instr_fmt_type == instr_fmt_paje) { } } -void LogEntityValue(simgrid::instr::Value* val) +void simgrid::instr::Value::print() { XBT_DEBUG("%s: event_type=%d", __FUNCTION__, simgrid::instr::PAJE_DefineEntityValue); //print it if (instr_fmt_type == instr_fmt_paje) { stream << std::fixed << std::setprecision(TRACE_precision()); stream << simgrid::instr::PAJE_DefineEntityValue; - stream << " " << val->id_ << " " << val->father_->id_ << " " << val->name_; - if (val->color_) - stream << " \"" << val->color_ << "\""; + stream << " " << id_ << " " << father_->id_ << " " << name_; + if (isColored()) + stream << " \"" << color_ << "\""; print_row(); } else if (instr_fmt_type == instr_fmt_TI) { /* Nothing to do */ @@ -490,7 +490,7 @@ void simgrid::instr::SetStateEvent::print() stream << (int)this->eventType_; print_timestamp(this); stream << " " << type->id_ << " " << container->id_; - stream << " " << value->id_; + stream << " " << value->getId(); #if HAVE_SMPI if (xbt_cfg_get_boolean("smpi/trace-call-location")) { stream << " \"" << filename << "\" " << linenumber; @@ -535,7 +535,7 @@ void simgrid::instr::PushStateEvent::print() stream << (int)this->eventType_; print_timestamp(this); stream << " " << type->id_ << " " << container->id_; - stream << " " << value->id_; + stream << " " << value->getId(); if (TRACE_display_sizes()) { stream << " "; @@ -677,7 +677,7 @@ void simgrid::instr::PushStateEvent::print() case TRACING_SSEND: case TRACING_ISSEND: default: - XBT_WARN("Call from %s impossible to translate into replay command : Not implemented (yet)", value->name_); + XBT_WARN("Call from %s impossible to translate into replay command : Not implemented (yet)", value->getCname()); break; } @@ -841,7 +841,7 @@ void simgrid::instr::NewEvent::print() stream << std::fixed << std::setprecision(TRACE_precision()); stream << (int)this->eventType_; print_timestamp(this); - stream << " " << type->id_ << " " << container->id_ << " " << val->id_; + stream << " " << type->id_ << " " << container->id_ << " " << val->getId(); print_row(); } else if (instr_fmt_type == instr_fmt_TI) { /* Nothing to do */