django-perftools

Software Screenshot:
django-perftools
Software Details:
Version: 0.7.2
Upload Date: 20 Feb 15
Developer: Disqus
Distribution Type: Freeware
Downloads: 3

Rating: nan/5 (Total Votes: 0)

django-perftools is a Django app that provides performance monitoring tools for Django.

Logging Slow Requests

Perftools includes a logger that will monitor requests execution time. Once it hits the defined threshold, it will log to the named perftools logger, including the metadata for the request (as defined by Sentry's logging spec).

from perftools.middleware.slowreq import SlowRequestLoggingMiddleware

app = SlowRequestLoggingMiddleware(app, threshold=100) # in ms

Remote Profiling

Profiles a request and saves the results to disk.

from perftools.middleware.remoteprof import RemoteProfilingMiddleware

app = RemoteProfilingMiddleware(app, outpath='/var/data/cprofile-results/', percent=10) # 10% of requests

Requirements:

  • Python
  • Django

Other Software of Developer Disqus

Disqus
Disqus

14 Dec 14

Overseer
Overseer

11 May 15

Comments to django-perftools

Comments not found
Add Comment
Turn on images!