def get_memory_heap(): if not app_settings.SEND_MEMORY_HEAP or not guppy_hpy: return '' return unicode(guppy_hpy().heap())
def memory(request): heap = guppy_hpy().heap() if guppy_hpy else '' return HttpResponse(unicode(heap), mime_type='text/plain')