def METHOD_NAME(arch, test):
    fn = 'run.%s.%s.log' % (test, arch)
    code_size = 0
    data_size = 0
    cycle_count = None
    stack_usage = None
    brackets = None
    current_bracket = None
    try:
        lines = open(fn).readlines()
    except IOError:
        return None
    for l in lines:
        if 'LOAD' in l:
            parts = l.split()
            assert len(parts) >= 8
            assert 'LOAD' == parts[0]
            if parts[6] == 'RWE':
                code_size += long(parts[5], 16)
            if parts[6] == 'RW':
                data_size += long(parts[5], 16)
        if l.startswith('bracket = '):
            bracket = long(l.split(' = ')[1].strip(), 16)
            current_bracket = bracket
            if brackets is None:
                brackets = {}
            brackets[current_bracket] = dict()
        if l.startswith('cycles = '):
            cycle_count = long(l.split(' = ')[1].strip(), 16)
            if current_bracket is not None:
                brackets[current_bracket]['cycle_count'] = cycle_count
        if l.startswith('stack = '):
            stack_usage = long(l.split(' = ')[1].strip(), 16)
            if current_bracket is not None:
                brackets[current_bracket]['stack_usage'] = stack_usage
    return dict(
            code_size = code_size,
            data_size = data_size,
            cycle_count = cycle_count,
            stack_usage = stack_usage,
            brackets = brackets
            )