traviscline (owner)

Revisions

gist: 110584 Download_button fork
public
Public Clone URL: git://gist.github.com/110584.git
Embed All Files: show embed
Python #
1
2
3
4
5
6
7
8
9
10
11
12
def rf_handler(sender, **kwargs):
    import guppy
    heapy = guppy.hpy()
    h = heapy.heap()
    print h
    print h.byrcs
    print 'xxxxxxxxxxx'
    print h[0].byrcs
    print h[1].byrcs
 
from django.core.signals import request_finished
request_finished.connect(rf_handler)