5import isystem.connect
as ic
6import export_profiler_data
13 conn_mgr = ic.ConnectionMgr()
14 conn_mgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
16 xml_file_path = export_profiler_data.export_data(conn_mgr)
17 prof_data = ic.CProfilerData2.createInstance(xml_file_path,
False)
19 area_url =
'Code/main'
20 area = prof_data.getArea(area_url)
21 print(f
"Area name (profiled function): {area.getAreaName()}")
23 area_url =
'Data/mainLoopCounter'
24 area = prof_data.getArea(area_url, 0x6)
25 print(f
"State name (state variable): {area.getParentAreaName()}")
26 print(f
"State value (state variable): {area.getAreaName()}")
29if __name__ ==
"__main__":