Changeset 1487
- Timestamp:
- 12/09/06 13:29:20
- Files:
-
- branches/cherrypy-2.x/cherrypy/_cpengine.py (modified) (2 diffs)
- branches/cherrypy-2.x/cherrypy/_cphttptools.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/cherrypy-2.x/cherrypy/_cpengine.py
r1486 r1487 9 9 import cherrypy 10 10 from cherrypy import _cphttptools, filters 11 from cherrypy.lib import autoreload, profiler,cptools11 from cherrypy.lib import autoreload, cptools 12 12 13 13 # Use a flag to indicate the state of the application server. … … 62 62 and conf('session.storage_type') == 'file'): 63 63 cherrypy._sessionFileLock = threading.RLock() 64 65 # Set up the profiler if requested.66 if conf("profiling.on", False):67 ppath = conf("profiling.path", "")68 cherrypy.profiler = profiler.Profiler(ppath)69 else:70 cherrypy.profiler = None71 64 72 65 # Initialize the built in filters branches/cherrypy-2.x/cherrypy/_cphttptools.py
r1486 r1487 9 9 from cherrypy import _cputil, _cpcgifs 10 10 from cherrypy.filters import applyFilters 11 from cherrypy.lib import cptools, httptools 11 from cherrypy.lib import cptools, httptools, profiler 12 12 13 13 … … 67 67 self.simpleCookie = self.simple_cookie # Backward compatibility 68 68 69 if cherrypy.profiler: 69 # Set up the profiler if requested. 70 conf = cherrypy.config.get 71 if conf("profiling.on", False): 72 p = getattr(cherrypy, "profiler", None) 73 if p is None: 74 ppath = conf("profiling.path", "") 75 p = cherrypy.profiler = profiler.Profiler(ppath) 70 76 cherrypy.profiler.run(self._run) 71 77 else:

