Package cherrypy :: Package lib :: Module cpstats :: Class StatsTool
[hide private]
[frames] | no frames]

Class StatsTool

source code

   object --+    
            |    
_cptools.Tool --+
                |
               StatsTool

Record various information about the current request.

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
_setup(self)
Hook this tool into cherrypy.request.
source code
 
record_start(self)
Record the beginning of a request.
source code
 
record_stop(self, uriset=None, slow_queries=1.0, slow_queries_count=100, debug=False, **kwargs)
Record the end of a request.
source code

Inherited from _cptools.Tool: __call__

Inherited from _cptools.Tool (private): _get_on, _merged_args, _set_on, _setargs

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from _cptools.Tool: namespace

Properties [hide private]

Inherited from _cptools.Tool: on

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

_setup(self)

source code 

Hook this tool into cherrypy.request.

The standard CherryPy request object will automatically call this method when the tool is "turned on" in config.

Overrides: _cptools.Tool._setup