def heapdo(line): if heapstats is None: raise PappyException('Command requires the guppy library') h = heapstats.heap() code.interact(local=locals())
def heap_info(line): size = heapstats.heap().size print 'Heap usage: {0:.2f} Mb'.format(size/(1024.0*1024.0)) print heapstats.heap()
def heap_info(line): size = heapstats.heap().size print 'Heap usage: {0:.2f} Mb'.format(size / (1024.0 * 1024.0)) print heapstats.heap()