

def display():
    if (state.sample_count == 0):
        print('No samples recorded.')
        return
    l = [CallStats(x) for x in call_data.itervalues()]
    l = [(x.self_secs_in_proc, x.cum_secs_in_proc, x) for x in l]
    l.sort(reverse=True)
    l = [x[2] for x in l]
    print(('%5.5s %10.10s   %7.7s  %-8.8s' % ('%  ', 'cumulative', 'self', '')))
    print(('%5.5s  %9.9s  %8.8s  %-8.8s' % ('time', 'seconds', 'seconds', 'name')))
    for x in l:
        x.display()
    print('---')
    print(('Sample count: %d' % state.sample_count))
    print(('Total time: %f seconds' % state.accumulated_time))

dataset/ETHPy150Open binhex/moviegrabber/lib/site-packages/Cheetah/Utils/statprof.py display/original