Tracking memory in DjangoΒΆ

Expose a memory-profiling panel to the Django Debug toolbar.

Shows process memory information (virtual size, resident set size) and model instances for the current request.

Requires Django and Django Debug toolbar:

Pympler adds a memory panel as a third party addon (not included in the django-debug-toolbar). It can be added by overriding the DEBUG_TOOLBAR_PANELS setting in the Django project settings:


Pympler also needs to be added to the INSTALLED_APPS in the Django settings:

INSTALLED_APPS = INSTALLED_APPS + ('debug_toolbar', 'pympler')