Skip to main content

Django middleware to log object leaks

Project description

This is a Django middleware to track down object leaks in your Django application.

To use it, add asparagus.middleware.TrackObjectLeaks to MIDDLEWARE_CLASSES. It should be in the first position.

MIDDLEWARE_CLASSES = [‘asparagus.middleware.TrackObjectLeaks’] + MIDDLEWARE_CLASSES

The middleware will print a summary of any objects created but not garbage collected.

if you set the settings ASPARAGUS_TRACK_CLASS to a name of an object (e.g. Thread, then the middleware will render a PNG of the references to any newly created objects.

Note, this is not something you ever want in production. Best to use it to find leaks then remove it from settings entirely.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

asparagus-0.1.0.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

asparagus-0.1.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file asparagus-0.1.0.tar.gz.

File metadata

  • Download URL: asparagus-0.1.0.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for asparagus-0.1.0.tar.gz
Algorithm Hash digest
SHA256 73ec0b17a6dd4fd08a8dd95b3eddf366164c6d92194039364c64fd4b224a6c72
MD5 2898b85f96159222e437ae8d6b41c473
BLAKE2b-256 72de071ae7866e4c7848c9e44832bb44ec9e302e0067dcf07454f21b25207cf4

See more details on using hashes here.

File details

Details for the file asparagus-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for asparagus-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 76cfdb34745b58b3891c7c95b89d63b30583d755960d21d45d85b5aa8a0cd832
MD5 302189ac79ad3c5ae8d6f41e83248d65
BLAKE2b-256 9a241c04bde3f7a2f8fde64b1a772be7999c3793985579e9ea62e6fcac673df9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page