

def get_stats(file_name):
    stats = Stats()
    callback = MemoryCallback(stats, 64)
    parser = RdbParser(callback)
    parser.parse(os.path.join(os.path.dirname(__file__), 'dumps', file_name))
    return stats.records

dataset/ETHPy150Open sripathikrishnan/redis-rdb-tools/tests/memprofiler_tests.py get_stats/original