Skip to content

Instantly share code, notes, and snippets.

@tmc
Created May 12, 2009 16:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmc/110584 to your computer and use it in GitHub Desktop.
Save tmc/110584 to your computer and use it in GitHub Desktop.
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment