Commit b0f013e0 authored by 's avatar

Added link to profiler docs in profiler output.

parent ce35ebe6
...@@ -84,8 +84,8 @@ ...@@ -84,8 +84,8 @@
############################################################################## ##############################################################################
__doc__="""Python Object Publisher -- Publish Python objects on web servers __doc__="""Python Object Publisher -- Publish Python objects on web servers
$Id: Publish.py,v 1.149 2001/04/01 17:47:04 jim Exp $""" $Id: Publish.py,v 1.150 2001/04/11 17:54:54 brian Exp $"""
__version__='$Revision: 1.149 $'[11:-2] __version__='$Revision: 1.150 $'[11:-2]
import sys, os import sys, os
from string import lower, atoi, rfind, strip from string import lower, atoi, rfind, strip
...@@ -402,6 +402,11 @@ if os.environ.get('PROFILE_PUBLISHER', None): ...@@ -402,6 +402,11 @@ if os.environ.get('PROFILE_PUBLISHER', None):
try: try:
error=sys.exc_info() error=sys.exc_info()
file=open(_pfile, 'w') file=open(_pfile, 'w')
file.write(
"See the url "
"http://www.python.org/doc/current/lib/module-profile.html"
"\n for information on interpreting profiler statistics.\n\n"
)
sys.stdout=file sys.stdout=file
_pstat.strip_dirs().sort_stats('cumulative').print_stats(250) _pstat.strip_dirs().sort_stats('cumulative').print_stats(250)
_pstat.strip_dirs().sort_stats('time').print_stats(250) _pstat.strip_dirs().sort_stats('time').print_stats(250)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment