#include <sstream>
#include <msg/msg.h>
#include <xbt/log.h>
-#include "simgrid_features.h"
#include "misc.h"
#include "options.h"
static const char* str[] = { "INFO", "CREDIT", "LOAD",
"CTRL_CLOSE", "DATA_CLOSE" };
std::ostringstream oss;
- oss << str[type] << " (" << amount << ")";
+ oss << str[type] << ": " << amount;
return oss.str();
}
-const int communicator::send_count_before_flush = 128;
+const int communicator::send_count_before_flush = 16;
communicator::communicator()
: host((hostdata* )MSG_host_get_data(MSG_host_self()))
void communicator::send(const char* dest, message* msg)
{
+ DEBUG2("send %s to %s", msg->to_string().c_str(), dest);
double msg_size = sizeof *msg;
if (msg->get_type() == message::LOAD)
msg_size += opt::comm_cost(msg->get_amount());
}
} while (restart);
+ if (msg)
+ DEBUG2("received %s from %s",
+ msg->to_string().c_str(), MSG_host_get_name(from));
+
return msg != NULL;
}