[Patches] [ python-Patches-559344 ] hotshot logreader unreliable

noreply@sourceforge.net noreply@sourceforge.net
Wed, 22 May 2002 12:59:44 -0700


Patches item #559344, was opened at 2002-05-22 19:59
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=559344&group_id=5470

Category: Modules
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Neil Schemenauer (nascheme)
Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: hotshot logreader unreliable

Initial Comment:
The hotshot logreader object does not refill the input
buffer
correctly and gets confused by certain profile log
files.  I have
a log file that triggers this bug if anyone is
interested.  It can
probably be reproduced by repeatedly profiling a program
with lots of modules and functions and trying to read
the log.

Rather then try to fix the buffer refill I've removed
it entirely. 
Using fgetc is much simpler and should perform as well or
better (but who cares).

I think this is a bugfix candidate.

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

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