-void DefineContainerEvent::print() {
- XBT_DEBUG("%s: event_type=%d, timestamp=%.*f", __FUNCTION__, (int)event_type, TRACE_precision(), timestamp);
- init_stream(this);
- stream << " " << type->id
- << " " << type->father->id
- << " " << type->name;
- print_row();
-}
-
-void DefineVariableTypeEvent::print() {
- XBT_DEBUG("%s: event_type=%d, timestamp=%.*f", __FUNCTION__, (int)event_type, TRACE_precision(), timestamp);
- init_stream(this);
- stream << " " << type->id
- << " " << type->father->id
- << " " << type->name;
- if (type->color)
- stream << " \"" << type->color << "\"";
- print_row();
-}
-
-void DefineStateTypeEvent::print() {
- XBT_DEBUG("%s: event_type=%d, timestamp=%.*f", __FUNCTION__, (int)event_type, TRACE_precision(), timestamp);
- init_stream(this);
- stream << " " << type->id
- << " " << type->father->id
- << " " << type->name;
- print_row();
-}
-
-void DefineEventTypeEvent::print() {
- XBT_DEBUG("%s: event_type=%d, timestamp=%.*f", __FUNCTION__, (int)event_type, TRACE_precision(), timestamp);
- init_stream(this);
- stream << " " << type->id
- << " " << type->father->id
- << " " << type->name;
- print_row();
-}
-
-void DefineLinkTypeEvent::print() {
- XBT_DEBUG("%s: event_type=%d, timestamp=%.*f", __FUNCTION__, (int)event_type, TRACE_precision(), timestamp);
- init_stream (this);
- stream << " " << type->id
- << " " << type->father->id
- << " " << source->id
- << " " << dest->id
- << " " << type->name;
- print_row();
-}
-
-void DefineEntityValueEvent::print() {
- XBT_DEBUG("%s: event_type=%d, timestamp=%.*f", __FUNCTION__, (int)event_type, TRACE_precision(), timestamp);
- init_stream(this);
- stream << " " << value->id
- << " " << value->father->id
- << " " << value->name;
- if(value->color)
- stream << " \"" << value->color << "\"";
- print_row();
-}
-
-void CreateContainerEvent::print() {
- XBT_DEBUG("%s: event_type=%d, timestamp=%.*f", __FUNCTION__, (int)event_type, TRACE_precision(), timestamp);
- init_stream(this);
- print_timestamp(this);
- stream << " " << container->id
- << " " << container->type->id
- << " " << container->father->id
- << " \"" << container->name << "\"";
-
- print_row();
-}
-
-void DestroyContainerEvent::print() {
- XBT_DEBUG("%s: event_type=%d, timestamp=%.*f", __FUNCTION__, (int)event_type, TRACE_precision(), timestamp);
- init_stream(this);
- print_timestamp(this);
- stream << " " << container->type->id
- << " " << container->id;
-
- print_row();
-}
-
-void SetVariableEvent::print() {
- XBT_DEBUG("%s: event_type=%d, timestamp=%.*f", __FUNCTION__, (int)event_type, TRACE_precision(), timestamp);
- init_stream(this);
- print_timestamp(this);
- stream << " " << type->id
- << " " << container->id
- << " " << value;
- print_row();
-}
-
-void AddVariableEvent::print() {
- XBT_DEBUG("%s: event_type=%d, timestamp=%.*f", __FUNCTION__, (int)event_type, TRACE_precision(), timestamp);
- init_stream(this);
- print_timestamp(this);
- stream << " " << type->id
- << " " << container->id
- << " " << value;
- print_row();
-}
-
-void SubVariableEvent::print() {
- XBT_DEBUG("%s: event_type=%d, timestamp=%.*f", __FUNCTION__, (int)event_type, TRACE_precision(), timestamp);
- init_stream(this);
- print_timestamp(this);
- stream << " " << type->id
- << " " << container->id
- << " " << value;
- print_row();
-}
-
-void SetStateEvent::print() {
- XBT_DEBUG("%s: event_type=%d, timestamp=%.*f", __FUNCTION__, (int)event_type, TRACE_precision(), timestamp);
- init_stream(this);
- print_timestamp(this);
- stream << " " << type->id
- << " " << container->id;
- stream << " " <<value->id;
-#if HAVE_SMPI
- if (xbt_cfg_get_boolean("smpi/trace-call-location")) {
- stream << " \"" << filename
- << "\" " << linenumber;
- }
-#endif
- print_row();
-}
-
-void PushStateEvent::print() {
- XBT_DEBUG("%s: event_type=%d, timestamp=%.*f", __FUNCTION__, (int)event_type, TRACE_precision(), timestamp);
- init_stream(this);
- print_timestamp(this);
- stream << " " << type->id
- << " " << container->id;
- stream << " " <<value->id;
-
- if (TRACE_display_sizes()) {
- stream << " ";
- if (extra != nullptr) {
- stream << static_cast<instr_extra_data>(extra)->send_size;
- }
- else {
- stream << 0;
- }
- }
-#if HAVE_SMPI
- if (xbt_cfg_get_boolean("smpi/trace-call-location")) {
- stream << " \"" << filename
- << "\" " << linenumber;
- }
-#endif
- print_row();
-
- if (extra != nullptr) {
- if (static_cast<instr_extra_data>(extra)->sendcounts != nullptr)
- xbt_free(static_cast<instr_extra_data>(extra)->sendcounts);
- if (static_cast<instr_extra_data>(extra)->recvcounts != nullptr)
- xbt_free(static_cast<instr_extra_data>(extra)->recvcounts);
- xbt_free(extra);
- }
-}
-
-void PopStateEvent::print() {
- XBT_DEBUG("%s: event_type=%d, timestamp=%.*f", __FUNCTION__, (int)event_type, TRACE_precision(), timestamp);
- init_stream(this);
- print_timestamp(this);
- stream << " " << type->id
- << " " << container->id;
- print_row();
-}