Changeset 1653
- Timestamp:
- 05/03/07 23:04:33
- Files:
-
- branches/cherrypy-3.0.x/cherrypy/lib/profiler.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/cherrypy-3.0.x/cherrypy/lib/profiler.py
r1281 r1653 78 78 os.makedirs(path) 79 79 80 def run(self, func, *args ):81 """run(func, *args ). Run func, dumpingprofile data into self.path."""80 def run(self, func, *args, **params): 81 """run(func, *args, **params). Dumps profile data into self.path.""" 82 82 global _count 83 83 c = _count = _count + 1 84 84 path = os.path.join(self.path, "cp_%04d.prof" % c) 85 85 prof = profile.Profile() 86 result = prof.runcall(func, *args )86 result = prof.runcall(func, *args, **params) 87 87 prof.dump_stats(path) 88 88 return result

