Skip to content

Commit fe2cb99

Browse files
authored
DPL: Improve debugging of bad topologies. (#12315)
Print dependency as graphviz digraph when topological sort fails.
1 parent 920bb11 commit fe2cb99

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Framework/Core/src/runDataProcessing.cxx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2590,6 +2590,11 @@ std::string debugTopoInfo(std::vector<DataProcessorSpec> const& specs,
25902590
for (auto& d : specs) {
25912591
out << "- " << d.name << std::endl;
25922592
}
2593+
out << "digraph G {\n";
2594+
for (auto& e : edges) {
2595+
out << fmt::format(" \"{}\" -> \"{}\"\n", specs[e.first].name, specs[e.second].name);
2596+
}
2597+
out << "}\n";
25932598
return out.str();
25942599
}
25952600

0 commit comments

Comments
 (0)