def trace_memory_alloc_simple_stats(snapshot, key_type='lineno'):
    """From https://docs.python.org/3/library/tracemalloc.html"""
    print('-----------------------------------------------------------------')
    print('[ Top 10 ]')
    top_stats = snapshot.statistics(key_type)
    for stat in top_stats[:10]:
        print(stat)
