31 Commits

Author SHA1 Message Date
Skip Montanaro
664ad76a34 back in these go - thanks to Titus Brown for the fix 2007-11-24 14:31:16 +00:00
Skip Montanaro
fb80cd91a8 revert change that breaks test_doctest (which I forgot to run - sorry) 2007-11-24 04:29:52 +00:00
Skip Montanaro
ab4fce4d7c Make trace and doctest play nice together (issue 1429818). Backported from
head.
2007-11-23 17:09:34 +00:00
Skip Montanaro
4a67a67416 backport: fix trace.py --ignore-dir 2007-02-11 18:41:56 +00:00
Georg Brandl
7a1af770b9 Patch #1536071: trace.py should now find the full module name of a
file correctly even on Windows.
2006-08-14 21:55:28 +00:00
Georg Brandl
b2afe855e5 Make use of new str.startswith/endswith semantics.
Occurences in email and compiler were ignored due to backwards compat requirements.
2006-06-09 20:43:48 +00:00
Tim Peters
be635cd744 Whitespace normalization. 2006-04-24 22:45:13 +00:00
Skip Montanaro
7b1559ac26 correct example 2006-04-23 19:32:14 +00:00
Fred Drake
db390c1ad8 fix typos, mostly in comments 2005-10-28 14:39:47 +00:00
Raymond Hettinger
481b09b352 SF #1062190. Removed an assertion that rendered trace.py unnecessarily
inflexibile.
2004-11-08 06:36:42 +00:00
Skip Montanaro
c00fc8452e Open file in universal newline mode when passing to compile(). Solution
from Felix Wiemann.  Closes patch #934971.
2004-04-16 03:28:19 +00:00
Skip Montanaro
5bfd98498a Refactor common code out of globaltrace_trackcallers() and
globaltrace_countfuncs() into file_module_function_of().

In that function use Michael Hudson's suggestion of gc.get_referrers() to
back up from the code object to a function, then to a class's dict and
finally to a class object if one exists.
2004-04-10 16:29:58 +00:00
Skip Montanaro
cafc811415 Added --trackcalls command line arg to display crude caller/callee
relationships at program exit.  Output is a bit prettier than that for
--listfuncs but won't parse as easily using downstream postprocessing tools.
2004-04-07 15:46:05 +00:00
Guido van Rossum
bbca8da3ca Fix two small bugs: (1) on Windows, pathname munging didn't work
right; (2) write_results_file() didn't return a tuple of two ints when
it couldn't create the file.  Will backport.
2004-02-19 19:16:50 +00:00
Walter Dörwald
70a6b49821 Replace backticks with repr() or "%r"
From SF patch #852334.
2004-02-12 17:35:32 +00:00
Raymond Hettinger
cc523fc53d SF patch #834015: Remove imports of unused modules
(Contributed by George Yoshida.)
2003-11-02 09:47:05 +00:00
Jeremy Hylton
d0e2705f3f Open results files, which contain binary pickles, in binary mode.
Remove fallback code that tries to read marshal data from a results
file, since this module never writes marshal data.
2003-10-14 20:12:06 +00:00
Guido van Rossum
80bd5ca722 Ouch. Remove debug code containing obscenities. :-) 2003-10-10 23:05:41 +00:00
Guido van Rossum
b427c00376 The fullmodname() function chopped off the first character if the
module existed in the current directory.  Fix this.  Backport
candidate (I presume).
2003-10-10 23:02:01 +00:00
Walter Dörwald
c171172614 Make the prefix 7 spaces long, so the lines are properly aligned. 2003-07-15 10:34:02 +00:00
Jeremy Hylton
d7ce86dcab Patch from Zooko to remove an experimental feature. 2003-07-07 16:08:47 +00:00
Fred Drake
01c623b1a3 fix typo 2003-06-27 19:22:11 +00:00
Skip Montanaro
a7b8ac6613 add mention of -l, --listfuncs to usage() small part of 542562 2003-06-27 19:09:33 +00:00
Jeremy Hylton
546e34b654 Enable tracing of multi-threaded applications.
Fix bug in computation of coverage percentage: Only count a line if it
was executed or if we print the >>>>>> marker.
2003-06-26 14:56:17 +00:00
Tim Peters
0eadaac7dc Whitespace normalization. 2003-04-24 16:02:54 +00:00