import isystem.connect as ic
import export_profiler_data
winidea_id = ''
def test_hasStatisticsForStateArea():
conn_mgr = ic.ConnectionMgr()
conn_mgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
xml_file_path = export_profiler_data.export_data(conn_mgr)
prof_data = ic.CProfilerData2.createInstance(xml_file_path, False)
area_url = 'Data/(g_baseStruct).i_base'
has_stat = prof_data.hasStatisticsForStateArea(area_url, 0x2A)
print(f"Has statistics for state variable '(g_baseStruct).i_base', value '0x2A': {has_stat}")
if __name__ == "__main__":
test_hasStatisticsForStateArea()