Skip to main content

a profile tool for tornado web requesthandler

Project description

Usage:
use `tprofile.ProfileMeta' as the metaclass of handler subclass or base handler class.

example:
import tornado.web
from tprofile import ProfileMeta

def condition(self):
return True if self.get_argument('profile', None) == "1" else False
ProfileMeta.set_condition(condition)

class BaseHandler(tornado.web.RequestHandler):
__metaclass__ = ProfileMeta

class MainHandler(BaseHandler):
def get(self):
pass

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

tprofile-0.0.11.tar.gz (2.7 kB view hashes)

Uploaded Source

Built Distribution

tprofile-0.0.11-py2.7.egg (7.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