Martin v. Löwis
21ee4091e1
Patch #615069 : Fix build problems on SCO Open Server 5. Backported to 2.2.
2002-09-30 16:19:48 +00:00
Martin v. Löwis
8eb92a014b
Patch #608999 : Fix portability problems with MIPSPro 7.x
2002-09-19 08:03:21 +00:00
Michael W. Hudson
806d1c817a
Fix *really* embarrassing typo reported by Raymond Hettinger.
2002-09-11 17:09:45 +00:00
Michael W. Hudson
02ff6a9952
A slight change to SET_LINENO-less tracing.
...
This makes things a touch more like 2.2. Read the comments in
Python/ceval.c for more details.
2002-09-11 15:36:32 +00:00
Michael W. Hudson
dd32a91cc0
This is my patch
...
[ 587993 ] SET_LINENO killer
Remove SET_LINENO. Tracing is now supported by inspecting co_lnotab.
Many sundry changes to document and adapt to this change.
2002-08-15 14:59:02 +00:00
Jason Tishler
4df78cddaa
Patch #588561 : Cygwin _hotshot patch
...
YA Cygwin module patch very similar to other patches
that I have submitted. I tested under Cygwin and Red
Hat Linux 7.1.
2002-08-08 19:46:15 +00:00
Guido van Rossum
0b624f69b5
unpack_string(): avoid a compiler warning (about a real bug!) by
...
copying the result of fgetc() into an int variable before testing it
for EOF.
2002-07-20 00:38:01 +00:00
Fred Drake
666bf52a16
- When the log reader detects end-of-file, close the file.
...
- The log reader now provides a "closed" attribute similar to the
profiler.
- Both the profiler and log reader now provide a fileno() method.
- Use METH_NOARGS where possible, allowing simpler code in the method
implementations.
2002-07-18 19:11:44 +00:00
Fred Drake
5c3ed3db9a
Mark the closed attribute of the profiler with PyDoc_STR(), and added
...
a docstring for the info attribute of the logreader object.
2002-07-17 19:38:05 +00:00
Fred Drake
d1eb8b61d0
Added a docstring for the closed attribute.
...
write_header(): When we encounter a non-string object in sys.path, record
a fairly mindless placeholder rather than dying. Possibly could record
the repr of the object found, but not clear whether that matters.
2002-07-17 18:54:20 +00:00
Guido van Rossum
9cb64b954a
Some modernization. Get rid of the redundant next() method. Always
...
assume tp_iter and later fields exist. Use PyObject_GenericGetAttr
instead of providing our own tp_getattr hook.
2002-07-17 16:15:35 +00:00
Martin v. Löwis
6238d2b024
Patch #569753 : Remove support for WIN16.
...
Rename all occurrences of MS_WIN32 to MS_WINDOWS.
2002-06-30 15:26:10 +00:00
Martin v. Löwis
14f8b4cfcb
Patch #568124 : Add doc string macros.
2002-06-13 20:33:02 +00:00
Neil Schemenauer
8b6b491ed7
The logreader object did not always refill the input buffer correctly
...
and got confused by certain log files. Remove logreader_refill and the
associated logic and replace with fgetc.
2002-05-29 18:19:14 +00:00
Neal Norwitz
3afb2d2bba
Remove compiler warnings on Solaris 8.
...
Can go into 2.2.x, but not necessary.
2002-03-20 21:32:07 +00:00
Andrew MacIntyre
7bf6833e17
OS/2 EMX port changes (Modules part of patch #450267 ):
...
Modules/
_hotshot.c
dbmmodule.c
fcntlmodule.c
main.c
pwdmodule.c
readline.c
selectmodule.c
signalmodule.c
termios.c
timemodule.c
unicodedata.c
2002-03-03 02:59:16 +00:00
Mark Hammond
7ba5e810fd
Ensure we also build on VC7. Involves replacing largeint.h helper functions with msvc's native 64 bit integers.
2002-02-12 04:02:33 +00:00
Fred Drake
2c146bfa28
start() and stop() methods: return None where there is no exception;
...
returning NULL causes the interpreter to raise a SystemError.
Noted by Anthony Baxter at Python 10.
2002-02-08 21:27:50 +00:00
Martin v. Löwis
cdc4451222
Include <unistd.h> in Python.h. Fixes #500924 .
2002-01-12 11:05:12 +00:00
Fred Drake
62c1e3c1b9
Make sure to propogate errors that arise when profiling data cannot be
...
written to the log file, and turn off the profiler.
This closes SF bug #483925 .
2001-12-04 21:40:53 +00:00
Tim Peters
885d457709
sprintf -> PyOS_snprintf in some "obviously safe" cases.
...
Also changed <>-style #includes to ""-style in some places where the
former didn't make sense.
2001-11-28 20:27:42 +00:00
Fred Drake
f12a68ccd0
Fix memory leak. This is (very!) similar to part of SF patch #478006 .
2001-11-09 15:59:36 +00:00
Fred Drake
4c2e1af890
Make the low-level log-reader object export a dictionary mapping keys
...
to lists of values, giving the contents of all the ADD_INFO records
seen so far. This is initialized agressively when the log file is
opened, so that whoever is looking at the log reader can always see
the initial data loaded into the data stream. ADD_INFO events later
in the log file continue to be reported to the application layer as
before.
Add a new method, addinfo(), to the profiler. This can be used to
insert additional ADD_INFO records into the profiler log.
Fix the tp_flags and tp_name slots on the type objects.
2001-10-29 20:45:57 +00:00
Jack Jansen
963659af29
Got this to work in MacPython. The code is #ifdef macintosh style (to match the existing #ifdef MS_WINDOWS), but eventually ifdeffing on configure features is probably better.
2001-10-23 22:26:16 +00:00
Fred Drake
30d1c75d15
Removed useless code to count the number of calls into the profiler.
...
Added support for saving the names of the functions observed into the
profile log.
Added support for using the profiler to measure coverage without collecting
timing information (which is the slow part). Coverage logs can also be
substantially smaller than profiling logs where per-line information is
being collected.
Updated comments on the log format; corrected record type values in some
of the record descriptions.
2001-10-15 22:11:02 +00:00
Tim Peters
7d99ff27e8
Speed the Windows code by using native 64-bit int compiler support instead
...
of calling external functions.
2001-10-13 07:37:52 +00:00
Tim Peters
1b6e08a25e
This compiles on Windows now.
2001-10-13 00:14:28 +00:00
Tim Peters
feab23f834
My editor can't deal with long backslash-continued strings. Changed 'em.
...
This still doesn't compile on Windows, but at least I have a shot at
fixing that now.
2001-10-13 00:11:10 +00:00
Tim Peters
1566a17af5
Get hotshot closer to compiling on Windows.
...
Still broken: GETTIMEOFDAY. This macro obviously isn't being defined
on Windows, so there's logic errors here I'd rather Fred untangled.
2001-10-12 22:08:39 +00:00
Fred Drake
8c081a1584
The HotShot core: look, ma, no hands!
2001-10-12 20:57:55 +00:00