

def show_growth(limit=10, peak_stats={
    
}, shortnames=True):
    "Show the increase in peak object counts since last call.\n\n    Limits the output to ``limit`` largest deltas.  You may set ``limit`` to\n    None to see all of them.\n\n    Uses and updates ``peak_stats``, a dictionary from type names to previously\n    seen peak object counts.  Usually you don't need to pay attention to this\n    argument.\n\n    The caveats documented in :func:`typestats` apply.\n\n    Example:\n\n        >>> show_growth()\n        wrapper_descriptor       970       +14\n        tuple                  12282       +10\n        dict                    1922        +7\n        ...\n\n    .. versionadded:: 1.5\n\n    .. versionchanged:: 1.8\n       New parameter: ``shortnames``.\n\n    "
    gc.collect()
    stats = typestats(shortnames=shortnames)
    deltas = {
        
    }
    for (name, count) in iteritems(old_count):
        old_count = peak_stats.get(name, 0)
        if (count > old_count):
            deltas[name] = (count - old_count)
            peak_stats[name] = count
    deltas = sorted(deltas.items(), key=operator.itemgetter(1), reverse=True)
    if limit:
        deltas = deltas[:limit]
    if deltas:
        width = max((len(name) for (name, count) in deltas))
        for (name, delta) in deltas:
            print(('%-*s%9d %+9d' % (width, name, stats[name], delta)))

dataset/ETHPy150Open Exa-Networks/exabgp/lib/exabgp/dep/objgraph.py show_growth/VarMisuse@56/321 `stats`->`old_count`