1
2
3
4
5import isystem.connect as ic
6
7winidea_id = ''
8
9
10EXAMPLE_TRD_FILE_NAME = "sdk_example.trd"
11
12
13def test_exportFormat():
14 connMgr = ic.ConnectionMgr()
15 connMgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
16
17 ideCtrl = ic.CIDEController(connMgr)
18
19 profCtrl = ic.CProfilerController2(connMgr, EXAMPLE_TRD_FILE_NAME, "u")
20 profCtrl.waitUntilLoaded(5000, isThrow=True)
21
22 print("Creating profiler XML export format configuration...")
23 fmt = ic.CProfilerXMLExportFormat()
24 fmt.setTimelineBinary(True)
25 fmt.setUseIndent(True)
26 fmt.setOptions(ideCtrl, EXAMPLE_TRD_FILE_NAME)
27 profCtrl.close()
28
29
30if __name__ == "__main__":
31 test_exportFormat()