static std::vector<simgrid::instr::PajeEvent*> buffer;
-void dump_comment(std::string comment)
+void dump_comment(const std::string& comment)
{
if (not comment.empty())
tracing_file << "# " << comment << std::endl;
}
-void dump_comment_file(std::string filename)
+void dump_comment_file(const std::string& filename)
{
if (filename.empty())
return;
/* internal do the instrumentation module */
void simgrid::instr::PajeEvent::insert_into_buffer()
{
- buffer_debug(&buffer);
-
XBT_DEBUG("%s: insert event_type=%u, timestamp=%f, buffersize=%zu)", __func__, eventType_, timestamp_, buffer.size());
std::vector<simgrid::instr::PajeEvent*>::reverse_iterator i;
for (i = buffer.rbegin(); i != buffer.rend(); ++i) {
else
XBT_DEBUG("%s: inserted at pos= %zd from its end", __func__, std::distance(buffer.rbegin(), i));
buffer.insert(i.base(), this);
-
- buffer_debug(&buffer);
}