runtime: de-dup channels in introspection graph
@@ -121,10 +121,12 @@ impl Runtime {
" node [shape=ellipse style=filled fillcolor=green]"
)
.unwrap();
+ let mut seen = HashSet::new();
let node_infos = self.node_infos.read().unwrap();
for node_id in node_infos.keys().sorted() {
let node_info = node_infos.get(node_id).unwrap();
for half in node_info.abi_handles.values() {
+ if seen.insert(half.dot_id()) {
writeln!(
&mut s,
r###" {} [label="{}"]"###,
@@ -134,6 +136,7 @@ impl Runtime {
.unwrap();
}
}
+ }
writeln!(&mut s, " }}").unwrap();
}
