6This script processes data recorded by profiler and creates two types
7of diagrams - UML sequence diagrams and call graphs.
10Requirements for custom Python installations
11============================================
13Python, which is bundled with winIDEA, already has all dependencies
161. - For sequence diagrams module 'seqdiag' has to be installed.
17 First download setuptools from:
18 https://pypi.python.org/pypi/setuptools
20 - Install
'seqdiag' (use correct path
for your Python installation):
21 C:\Python27\Scripts\easy_install seqdiag
23 Alternatively (
if the above steps failed) you can download seqdiag
from:
24 https://pypi.python.org/pypi/seqdiag/
25 Uncompress it (7-zip can be used)
and run:
282. Install graphviz. Windows installer can be downloaded
from:
29 http://www.graphviz.org/Download_windows.php
30 The console
or IDE where the scripts will be ran should be restarted
31 after the graphviz has been installed.
33See also help text
in function _parse_cmd_line_options().
38import isystem.seqAndCallDiag as scdiag
43 profilerExportFile = '../../targetProjects/profilerSample-1.xml'
44 callGraphImageFName =
'../../targetProjects/profilerSample-1.call'
45 seqDiagImageFName =
'../../targetProjects/profilerSample-1.svg'
47 isCreateSeqDiag =
True
48 isCreateCallGraph =
False
49 seqDiagCompactLevel = 4
50 isCreateSeqDiagImage =
True
51 isCreateCallGraphImage =
False
52 isOpenSeqDiagImage =
True
53 isOpenCallGraphImage =
False
55 is_binary_timeline =
False
58 scdiag.generateDiagrams(
'',
63 isCreateSeqDiag, isCreateCallGraph,
65 isCreateSeqDiagImage, isCreateCallGraphImage,
66 isOpenSeqDiagImage, isOpenCallGraphImage,
67 variableName, is_binary_timeline)
68 except Exception
as ex:
69 print(str(ex), file=sys.stderr)
73if __name__ ==
"__main__":