Skip to main content

WSGI Profiler for Python Paste

Project description

Profiler middleware

This package provides middleware for profiling of the application. It’s based on paste.debug.profile, but uses cProfile instead of hotshot.

If you use PasteScript, enabling the profiler is as simple as adding

[filter-app:profile]
use = egg:keas.profile#profiler
next = main

to your paster configuration file and passing --app-name=profile to paster. When you access your web application, every page will have the profiler output appended to the end of the document body.

Viewing profiles with KCacheGrind

KCacheGrind is a GUI application for digging through the profile data and visualizing call trees. keas.profile uses pyprof2calltree to convert the profiler data into KCacheGrind format for your convenience. To view it, open the log file (profile.log.tmp.kgrind by default) in KCacheGrind.

CHANGES

0.1.0 (2008-12-12)

  • Initial release

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

keas.profile-0.1.0.tar.gz (5.5 kB view hashes)

Uploaded Source

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