Image format

merge-requests/8/head
Bob Mottram 2020-12-22 23:09:09 +00:00
parent b927863f7e
commit 82a7cb2cb2
1 changed files with 3 additions and 3 deletions

View File

@ -2844,15 +2844,15 @@ def testFunctions():
for name, properties in functionProperties.items():
if not properties['calls']:
continue
for calledFunc in properties['calls']:
callGraphStr += ' "' + name + '" -> "' + calledFunc + '";\n'
# for calledFunc in properties['calls']:
# callGraphStr += ' "' + name + '" -> "' + calledFunc + '";\n'
callGraphStr += '\n}\n'
with open('epicyon.dot', 'w+') as fp:
fp.write(callGraphStr)
print('Call graph saved to epicyon.dot')
print('Convert to image with: ' +
'dot -T epicyon.dot -o epicyon_diagram.jpg')
'dot -Tjpg epicyon.dot -o epicyon_diagram.jpg')
def runAllTests():