def METHOD_NAME(grouped_accesses, display_offsets, display_time):
    FMT = "{} -- \u03a3 = {}us"
    def print_fmt(label, total):
        print(FMT.format(label.ljust(MAX_LABEL_WIDTH), total).encode("utf-8"))
    for label, accesses in grouped_accesses:
        count = len(accesses)
        total = sum(time for _, time in accesses)
        if count > 1:
            label += " x{}".format(count)
        if display_offsets:
            label += " @ " + ", ".join(str(offset) for offset, _ in accesses)
        if not display_time:
            print(label)
            continue
        if len(label) <= MAX_LABEL_WIDTH:
            print_fmt(label, total)
        else:
            print(label)
            print_fmt("", total)