Compute the differences with an old snapshot old_snapshot. Get statistics as a sorted list of StatisticDiff instances, grouped by group_by.
tracemalloc/Snapshot.compare_to
Snapshot.compare_to