Skip to main content

a profile tool for tornado web requesthandler

Project description



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



import tornado.web
from tprofile import ProfileMeta

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

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

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

Project details

Download files

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

Files for tprofile, version 0.0.16
Filename, size File type Python version Upload date Hashes
Filename, size tprofile-0.0.16-py2.7.egg (7.5 kB) File type Egg Python version 2.7 Upload date Hashes View hashes
Filename, size tprofile-0.0.16.tar.gz (2.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page