classification
Title: -m pstats should combine all the profiles given as arguments
Type: enhancement Stage: test needed
Components: Library (Lib) Versions: Python 3.3
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: anacrolix, eric.araujo, georg.brandl
Priority: normal Keywords: patch

Created on 2012-01-23 03:38 by anacrolix, last changed 2012-02-05 12:34 by eric.araujo.

Files
File name Uploaded Description Edit
m-pstats-merge-profiles.patch anacrolix, 2012-01-23 03:38 review
Messages (2)
msg151795 - (view) Author: Matt Joiner (anacrolix) Date: 2012-01-23 03:38
Frequently when profiling multiple threads, I need to combine several dump stat files. Currently -m pstats reads the profiling data at only the first path given. It should merge all the profiling data from all the paths given.

$ python3.3 -m pstats prof/5506-7f00f*

Minimalist patch attached.
msg152682 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2012-02-05 12:34
This sounds like a reasonable request.  The patch needs tests, probably using test.script_helper.assert_python_ok.
History
Date User Action Args
2012-02-05 12:34:15eric.araujosetnosy: + eric.araujo
messages: + msg152682
2012-01-27 23:06:08terry.reedysetnosy: + georg.brandl
stage: test needed

versions: - Python 2.6, Python 3.1, Python 2.7, Python 3.2, Python 3.4
2012-01-23 03:38:16anacrolixcreate