[Python-checkins] cpython: Issue #13839: When invoked on the command-line, the pstats module now accepts
antoine.pitrou
python-checkins at python.org
Wed Mar 14 17:51:37 CET 2012
http://hg.python.org/cpython/rev/3a5a0e7d38c5
changeset: 75629:3a5a0e7d38c5
user: Antoine Pitrou <solipsis at pitrou.net>
date: Wed Mar 14 17:47:11 2012 +0100
summary:
Issue #13839: When invoked on the command-line, the pstats module now accepts several filenames of profile stat files and merges them all.
Patch by Matt Joiner.
files:
Lib/pstats.py | 2 ++
Misc/NEWS | 4 ++++
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/Lib/pstats.py b/Lib/pstats.py
--- a/Lib/pstats.py
+++ b/Lib/pstats.py
@@ -680,6 +680,8 @@
initprofile = None
try:
browser = ProfileBrowser(initprofile)
+ for profile in sys.argv[2:]:
+ browser.do_add(profile)
print("Welcome to the profile statistics browser.", file=browser.stream)
browser.cmdloop()
print("Goodbye.", file=browser.stream)
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -24,6 +24,10 @@
Library
-------
+- Issue #13839: When invoked on the command-line, the pstats module now
+ accepts several filenames of profile stat files and merges them all.
+ Patch by Matt Joiner.
+
- Issue #14291: Email now defaults to utf-8 for non-ASCII unicode headers
instead of raising an error. This fixes a regression relative to 2.7.
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list