Changeset 828
- Timestamp:
- 11/20/05 20:41:03
- Files:
-
- trunk/cherrypy/lib/profiler.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/lib/profiler.py
r768 r828 32 32 """ 33 33 34 35 # Make profiler output more readable by adding __init__ modules' parents. 36 def new_func_strip_path(func_name): 37 filename, line, name = func_name 38 if filename.endswith("__init__.py"): 39 return os.path.basename(filename[:-12]) + filename[-12:], line, name 40 return os.path.basename(filename), line, name 41 import pstats 42 pstats.func_strip_path = new_func_strip_path 34 43 35 44 import hotshot

