Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Specify actor in the MC traces
[simgrid.git] / src / mc / explo / DFSExplorer.cpp
index aede648..99da144 100644 (file)
@@ -68,8 +68,10 @@ RecordTrace DFSExplorer::get_record_trace() // override
 std::vector<std::string> DFSExplorer::get_textual_trace() // override
 {
   std::vector<std::string> trace;
-  for (auto const& state : stack_)
-    trace.push_back(state->get_transition()->to_string());
+  for (auto const& state : stack_) {
+    auto* t = state->get_transition();
+    trace.push_back(xbt::string_printf("%ld: %s", t->aid_, t->to_string().c_str()));
+  }
   return trace;
 }