From 4f75c58568f9808da1451ab62943f4b38c01c35d Mon Sep 17 00:00:00 2001 From: Eugene Toder Date: Fri, 15 Nov 2024 15:25:56 -0500 Subject: [PATCH] Remove "%3" tooltip in SVG output --- gprof2dot.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gprof2dot.py b/gprof2dot.py index 074dc39..a4ab0c8 100755 --- a/gprof2dot.py +++ b/gprof2dot.py @@ -3524,6 +3524,11 @@ def graph(self, profile, theme): def begin_graph(self): self.write('digraph {\n') + # Work-around graphviz bug[1]: unnamed graphs have "%3" tooltip in SVG + # output. The bug was fixed upstream, but graphviz shipped in recent + # Linux distros (for example, Ubuntu 24.04) still has the bug. + # [1] https://gitlab.com/graphviz/graphviz/-/issues/1376 + self.write('\ttooltip=" "\n') def end_graph(self): self.write('}\n')