Changeset 1098
- Timestamp:
- 05/07/06 17:21:50
- Files:
-
- trunk/cherrypy/_cpengine.py (modified) (2 diffs)
- trunk/cherrypy/_cprequest.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/_cpengine.py
r1096 r1098 8 8 import cherrypy 9 9 from cherrypy import _cprequest 10 from cherrypy.lib import autoreload, profiler,cptools10 from cherrypy.lib import autoreload, cptools 11 11 12 12 # Use a flag to indicate the state of the application engine. … … 47 47 from cherrypy.lib import covercp 48 48 covercp.start() 49 50 # Set up the profiler if requested.51 if conf("profiling.on", False):52 ppath = conf("profiling.path", "")53 cherrypy.profiler = profiler.Profiler(ppath)54 else:55 cherrypy.profiler = None56 49 57 50 # Autoreload. Note that, if we're not starting our own HTTP server, trunk/cherrypy/_cprequest.py
r1096 r1098 8 8 import cherrypy 9 9 from cherrypy import _cperror, _cputil, _cpcgifs, tools 10 from cherrypy.lib import cptools, httptools 10 from cherrypy.lib import cptools, httptools, profiler 11 11 12 12 … … 69 69 self.simple_cookie = Cookie.SimpleCookie() 70 70 71 if cherrypy.profiler: 71 # Set up the profiler if requested. 72 conf = cherrypy.config.get 73 if conf("profiling.on", False): 74 p = getattr(cherrypy, "profiler", None) 75 if p is None: 76 ppath = conf("profiling.path", "") 77 p = cherrypy.profiler = profiler.Profiler(ppath) 72 78 cherrypy.profiler.run(self._run) 73 79 else:

