Alexander Belopolsky
517185edcb
Merged revisions 84994 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r84994 | alexander.belopolsky | 2010-09-24 14:03:12 -0400 (Fri, 24 Sep 2010) | 1 line
Issue #9936 : Fixed executable lines' search in the trace module.
........
2010-09-24 18:14:18 +00:00
Alexander Belopolsky
9d17da33e2
Issue #9315 : Fix for the trace module to record correct class name
...
when tracing methods. Unit tests. Patch by Eli Bendersky.
2010-09-13 16:45:02 +00:00
Georg Brandl
11ce4d98f2
Merged revisions 83525 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r83525 | georg.brandl | 2010-08-02 14:36:24 +0200 (Mo, 02 Aug 2010) | 1 line
Get rid of spurious "threading" entries in trace output.
........
2010-08-02 21:38:08 +00:00
Georg Brandl
78e6957cdf
Merged revisions 83393,83396,83398,83405,83408 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r83393 | georg.brandl | 2010-08-01 10:35:29 +0200 (So, 01 Aug 2010) | 1 line
#1690103 : fix initial namespace for code run with trace.main().
........
r83396 | georg.brandl | 2010-08-01 10:52:32 +0200 (So, 01 Aug 2010) | 1 line
#4810 : document "--" option separator in timeit help.
........
r83398 | georg.brandl | 2010-08-01 11:06:34 +0200 (So, 01 Aug 2010) | 1 line
#8826 : the "expires" attribute value is a date string with spaces, but apparently not all user-agents put it in quotes. Handle that as a special case.
........
r83405 | georg.brandl | 2010-08-01 16:38:17 +0200 (So, 01 Aug 2010) | 1 line
#4943 : do not try to include drive letters (and colons) when looking for a probably module name.
........
r83408 | georg.brandl | 2010-08-01 17:30:56 +0200 (So, 01 Aug 2010) | 1 line
#5551 : symbolic links never can be mount points. Fixes the fix for #1713 .
........
2010-08-01 18:52:52 +00:00
Benjamin Peterson
6e3dbbdf39
replace has_key with 'in' operator
2009-10-09 22:15:50 +00:00
Neal Norwitz
ca37661a69
Add a timing flag to Trace so you can see where slowness occurs
...
like waiting for socket timeouts in test_smtplib :-).
2008-02-26 08:21:28 +00:00
Facundo Batista
873c9857b7
Fix #1693149 . Now you can pass several modules separated by
...
coma to trace.py in the same --ignore-module option.
Thanks Raghuram Devarakonda.
2008-01-19 18:38:19 +00:00
Skip Montanaro
58a6f446db
back in these go - thanks to Titus Brown for the fix
2007-11-24 14:30:47 +00:00
Skip Montanaro
d3a1bdf4d9
revert change that breaks test_doctest (which I forgot to run - sorry)
2007-11-24 04:29:08 +00:00
Skip Montanaro
6d7914bf22
Make trace and doctest play nice together (issue 1429818). Will backport.
2007-11-23 17:08:35 +00:00
Skip Montanaro
691acf2879
fix trace.py --ignore-dir
2007-02-11 18:24:37 +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