Skip to content

ravi77o/django-plop

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Django-plop

Django-plop is a middleware for profiling your views with PLOP, the Python Low Overhead Profiler.

Warning: This doesn't currently work - Plop uses signaling in a way that is incompatible with Django. But I found that information out after I had implemented that, so I'm letting this sit.

Usage

In your project settings:

MIDDLEWARE_CLASSES = MIDDLEWARE_CLASSES + ('django-plop.middleware.PlopMiddleware',)

PLOP_DIR = os.path.join(PROJECT_ROOT, 'plop') # will be created, defaults to /tmp/plop

Production Usage

PLOP itself is used in production by Dropbox with 2% CPU overhead (or so). However, this middleware will write logs to the disk, which may not be acceptable for your use case (especially on Heroku et. al.)

About

Django plop middleware

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published