XBT_DEBUG("<<<<<<");
}
-static void print_paje_debug(std::string functionName, PajeEvent* event) {
- XBT_DEBUG("%s: event_type=%d, timestamp=%.*f", __FUNCTION__, (int)event->event_type, TRACE_precision(),
- event->timestamp);
-}
-
static void init_stream(PajeEvent* event) {
stream << std::fixed << std::setprecision(TRACE_precision());
stream << (int) event->event_type;
}
void DefineContainerEvent::print() {
- print_paje_debug(__FUNCTION__, this);
+ XBT_DEBUG("%s: event_type=%d, timestamp=%.*f", __FUNCTION__, (int)event_type, TRACE_precision(), timestamp);
init_stream(this);
stream << " " << type->id
<< " " << type->father->id
}
void DefineVariableTypeEvent::print() {
- print_paje_debug(__FUNCTION__, this);
- init_stream(this);
+ 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;
}
void DefineStateTypeEvent::print() {
- print_paje_debug(__FUNCTION__, this);
+ XBT_DEBUG("%s: event_type=%d, timestamp=%.*f", __FUNCTION__, (int)event_type, TRACE_precision(), timestamp);
init_stream(this);
stream << " " << type->id
<< " " << type->father->id
}
void DefineEventTypeEvent::print() {
- print_paje_debug(__FUNCTION__, this);
+ XBT_DEBUG("%s: event_type=%d, timestamp=%.*f", __FUNCTION__, (int)event_type, TRACE_precision(), timestamp);
init_stream(this);
stream << " " << type->id
<< " " << type->father->id
}
void DefineLinkTypeEvent::print() {
- print_paje_debug(__FUNCTION__, this);
+ XBT_DEBUG("%s: event_type=%d, timestamp=%.*f", __FUNCTION__, (int)event_type, TRACE_precision(), timestamp);
init_stream (this);
stream << " " << type->id
<< " " << type->father->id
}
void DefineEntityValueEvent::print() {
- print_paje_debug(__FUNCTION__, this);
+ XBT_DEBUG("%s: event_type=%d, timestamp=%.*f", __FUNCTION__, (int)event_type, TRACE_precision(), timestamp);
init_stream(this);
stream << " " << value->id
<< " " << value->father->id
}
void CreateContainerEvent::print() {
- print_paje_debug(__FUNCTION__, this);
+ XBT_DEBUG("%s: event_type=%d, timestamp=%.*f", __FUNCTION__, (int)event_type, TRACE_precision(), timestamp);
init_stream(this);
print_timestamp(this);
stream << " " << container->id
}
void DestroyContainerEvent::print() {
- print_paje_debug(__FUNCTION__, this);
+ 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
}
void SetVariableEvent::print() {
- print_paje_debug(__FUNCTION__, this);
+ XBT_DEBUG("%s: event_type=%d, timestamp=%.*f", __FUNCTION__, (int)event_type, TRACE_precision(), timestamp);
init_stream(this);
print_timestamp(this);
stream << " " << type->id
}
void AddVariableEvent::print() {
- print_paje_debug(__FUNCTION__, this);
+ XBT_DEBUG("%s: event_type=%d, timestamp=%.*f", __FUNCTION__, (int)event_type, TRACE_precision(), timestamp);
init_stream(this);
print_timestamp(this);
stream << " " << type->id
}
void SubVariableEvent::print() {
- print_paje_debug(__FUNCTION__, this);
+ XBT_DEBUG("%s: event_type=%d, timestamp=%.*f", __FUNCTION__, (int)event_type, TRACE_precision(), timestamp);
init_stream(this);
print_timestamp(this);
stream << " " << type->id
}
void SetStateEvent::print() {
- print_paje_debug(__FUNCTION__, this);
+ XBT_DEBUG("%s: event_type=%d, timestamp=%.*f", __FUNCTION__, (int)event_type, TRACE_precision(), timestamp);
init_stream(this);
print_timestamp(this);
stream << " " << type->id
}
void PushStateEvent::print() {
- print_paje_debug(__FUNCTION__, this);
- init_stream(this);
+ 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;
}
void PopStateEvent::print() {
- print_paje_debug(__FUNCTION__, this);
- init_stream(this);
+ 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;
}
void ResetStateEvent::print() {
- print_paje_debug(__FUNCTION__, this);
- init_stream(this);
+ 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;
}
void StartLinkEvent::print() {
- print_paje_debug(__FUNCTION__, this);
- init_stream(this);
+ 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
}
void EndLinkEvent::print() {
- print_paje_debug(__FUNCTION__, this);
- init_stream(this);
+ 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
}
void NewEvent::print () {
- print_paje_debug(__FUNCTION__, this);
+ XBT_DEBUG("%s: event_type=%d, timestamp=%.*f", __FUNCTION__, (int)event_type, TRACE_precision(), timestamp);
init_stream (this);
print_timestamp(this);
stream << " " << type->id