def TranslatePerfs(object_name, perfs):
    d = {}
    for p in perfs:
        for cname in omi_map:
            for prop in cname['CimProperties']:
                if (((p == prop['CounterName']) or (p == prop['CimPropertyName'])) and (cname['ObjectName'] == object_name)):
                    if (cname['ObjectName'] not in d.keys()):
                        d[cname['ObjectName']] = [p]
                    else:
                        d[cname['ObjectName']].append(p)
    return d
def TranslatePerfs(object_name, perfs):
    d = {}
    for p in perfs:
        for cname in omi_map:
            for prop in cname['CimProperties']:
                if (((p == prop['CounterName']) or (p == prop['CimPropertyName'])) and (cname['ObjectName'] == object_name)):
                    if (cname['ObjectName'] not in d.keys()):
                        d[cname['ObjectName']] = [p]
                    else:
                        d[cname['ObjectName']].append(p)
    return d