7import isystem.connect
as ic
12EXAMPLE_TRD_FILE_NAME =
"sdk_example.trd"
16 connMgr = ic.ConnectionMgr()
17 connMgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
19 profCtrl = ic.CProfilerController2(connMgr, EXAMPLE_TRD_FILE_NAME,
"u")
20 profCtrl.waitUntilLoaded(5000, isThrow=
True)
22 FILE_NAME =
"exportCfg.txt"
23 wksFolderPath = ic.CIDEController(connMgr).getPath(ic.CIDEController.WORKSPACE_DIR)
24 exportFilePath = os.path.join(wksFolderPath, FILE_NAME)
26 exportCfg = ic.CProfilerExportConfig()
27 exportCfg.setFileName(FILE_NAME)
28 profCtrl.exportData(exportCfg)
29 print(f
"Exported file path: {exportFilePath}")
33if __name__ ==
"__main__":