sfdp settings

main
Bob Mottram 2020-12-23 13:41:54 +00:00
parent 72b07306f9
commit 76a634b9dd
1 changed files with 9 additions and 5 deletions

View File

@ -2865,10 +2865,12 @@ def testFunctions():
callGraphStr += ' subgraph cluster_' + modName + ' {\n' callGraphStr += ' subgraph cluster_' + modName + ' {\n'
callGraphStr += ' label = "' + modName + '";\n' callGraphStr += ' label = "' + modName + '";\n'
callGraphStr += ' node [style=filled];\n' callGraphStr += ' node [style=filled];\n'
callGraphStr += ' ' moduleFunctionsStr = ''
for name in modProperties['functions']: for name in modProperties['functions']:
callGraphStr += '"' + name + '" ' if name not in excludeFuncs:
callGraphStr += ';\n' moduleFunctionsStr += '"' + name + '" '
if moduleFunctionsStr:
callGraphStr += ' ' + moduleFunctionsStr + ';\n'
callGraphStr += ' color=blue;\n' callGraphStr += ' color=blue;\n'
callGraphStr += ' }\n\n' callGraphStr += ' }\n\n'
@ -2876,6 +2878,7 @@ def testFunctions():
if not properties['calls']: if not properties['calls']:
continue continue
for calledFunc in properties['calls']: for calledFunc in properties['calls']:
if calledFunc not in excludeFuncs:
callGraphStr += ' "' + name + '" -> "' + calledFunc + '";\n' callGraphStr += ' "' + name + '" -> "' + calledFunc + '";\n'
callGraphStr += '\n}\n' callGraphStr += '\n}\n'
@ -2883,7 +2886,8 @@ def testFunctions():
fp.write(callGraphStr) fp.write(callGraphStr)
print('Call graph saved to epicyon.dot') print('Call graph saved to epicyon.dot')
print('Convert to image with: ' + print('Convert to image with: ' +
'sfdp -x -Goverlap=scale -Tx11 epicyon.dot') 'sfdp -x -Goverlap=prism -Goverlap_scaling=8 ' +
'-Gsep=+120 -Tx11 epicyon.dot')
def runAllTests(): def runAllTests():