[Python-bugs-list] [ python-Bugs-416039 ] pstats browser crashes

noreply@sourceforge.net noreply@sourceforge.net
Tue, 17 Apr 2001 18:09:06 -0700


Bugs item #416039, was updated on 2001-04-13 15:55
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=416039&group_id=5470

Category: Python Library
Group: None
Status: Open
Resolution: None
Priority: 7
Submitted By: Jeremy Hylton (jhylton)
Assigned to: Eric S. Raymond (esr)
Summary: pstats browser crashes

Initial Comment:
My very first attempt to use the pstats browser failed
immediately.

w221:~/src/python/dist/src/Tools/compiler> python2.1
../../Lib/pstats.py compiler/__init__.py.prof 
Welcome to the profile statistics browser.
% help

Documented commands (type help <topic>):
========================================
EOF             add             callees        
callers         quit           
read            reverse         sort           
stats           strip           

Undocumented commands:
======================
help            

% callers
Traceback (most recent call last):
  File "../../Lib/pstats.py", line 646, in ?
    ProfileBrowser(initprofile).cmdloop()
  File "../../Lib/cmd.py", line 86, in cmdloop
    stop = self.onecmd(line)
  File "../../Lib/cmd.py", line 124, in onecmd
    return func(arg)
  File "../../Lib/pstats.py", line 580, in do_callers
    return self.generic('callers', line)
  File "../../Lib/pstats.py", line 563, in generic
    apply(getattr(self.stats, fn), processed)
AttributeError: Stats instance has no attribute
'callers'

----------------------------------------------------------------------

>Comment By: Jeremy Hylton (jhylton)
Date: 2001-04-17 18:09

Message:
Logged In: YES 
user_id=31392

Eric-- If you fixed the bug, please close the bug report.


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=416039&group_id=5470