]> granicus.if.org Git - python/commitdiff
Issue #13839: When invoked on the command-line, the pstats module now accepts several...
authorAntoine Pitrou <solipsis@pitrou.net>
Wed, 14 Mar 2012 16:47:11 +0000 (17:47 +0100)
committerAntoine Pitrou <solipsis@pitrou.net>
Wed, 14 Mar 2012 16:47:11 +0000 (17:47 +0100)
Patch by Matt Joiner.

Lib/pstats.py
Misc/NEWS

index 334d717e205e7a069705c196c5370734450398ef..13d944c154a8071eb08f74b93d2f335821fab5da 100644 (file)
@@ -680,6 +680,8 @@ if __name__ == '__main__':
         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)
index 0d6cdbb13d0dee54b6423c32d6e4df0fc2034fca..3652d618bc0d51ab532454a139b9939d757ee398 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -24,6 +24,10 @@ Core and Builtins
 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.