コード例 #1
0
ファイル: debug.py プロジェクト: amuntner/pappy-proxy
def heapdo(line):
    if heapstats is None:
        raise PappyException('Command requires the guppy library')
    h = heapstats.heap()
    code.interact(local=locals())
コード例 #2
0
def heapdo(line):
    if heapstats is None:
        raise PappyException('Command requires the guppy library')
    h = heapstats.heap()
    code.interact(local=locals())
コード例 #3
0
ファイル: debug.py プロジェクト: amuntner/pappy-proxy
def heap_info(line):
    size = heapstats.heap().size
    print 'Heap usage: {0:.2f} Mb'.format(size/(1024.0*1024.0))
    print heapstats.heap()
コード例 #4
0
def heap_info(line):
    size = heapstats.heap().size
    print 'Heap usage: {0:.2f} Mb'.format(size / (1024.0 * 1024.0))
    print heapstats.heap()