Skip to content

Commit

Permalink
Remove "%3" tooltip in SVG output
Browse files Browse the repository at this point in the history
  • Loading branch information
eltoder authored and jrfonseca committed Nov 15, 2024
1 parent a5dfe18 commit 4f75c58
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gprof2dot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 4f75c58

Please sign in to comment.