Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(635)

Issue 281093002: Make cygprofile order functions by process and thread ID. (Closed)

Created:
6 years, 7 months ago by Philippe
Modified:
6 years, 6 months ago
Reviewers:
pasko
CC:
chromium-reviews
Visibility:
Public.

Description

Make cygprofile order functions by process and thread ID. This is used to make the order of functions not depend on thread-scheduling which can be greatly impacted when profiling is done with cygprofile. As a result each thread has its own contiguous segment of code (ordered by timestamp) and processes also have their code isolated (i.e. not interleaved). BUG=372323

Patch Set 1 #

Total comments: 8

Patch Set 2 : Use Egor's code #

Patch Set 3 : Remove unnecessary blank line #

Total comments: 2

Patch Set 4 : Remove unnecessary assignment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -18 lines) Patch
A + tools/cygprofile/PRESUBMIT.py View 1 2 chunks +3 lines, -7 lines 0 comments Download
M tools/cygprofile/mergetraces.py View 1 2 3 6 chunks +51 lines, -8 lines 0 comments Download
A tools/cygprofile/mergetraces_unittest.py View 1 chunk +36 lines, -0 lines 0 comments Download
A + tools/cygprofile/run_tests View 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Philippe
6 years, 6 months ago (2014-05-27 17:11:21 UTC) #1
pasko
Flattening is not super scary (just redundant:), so I think we can commit it. Please ...
6 years, 6 months ago (2014-06-05 11:28:48 UTC) #2
pasko
https://codereview.chromium.org/281093002/diff/1/tools/cygprofile/mergetraces.py File tools/cygprofile/mergetraces.py (right): https://codereview.chromium.org/281093002/diff/1/tools/cygprofile/mergetraces.py#newcode138 tools/cygprofile/mergetraces.py:138: def GroupByProcessAndThreadId(sorted_trace): I still think my function is easier ...
6 years, 6 months ago (2014-06-05 12:16:35 UTC) #3
Philippe
Thanks, Egor! https://codereview.chromium.org/281093002/diff/1/tools/cygprofile/mergetraces.py File tools/cygprofile/mergetraces.py (right): https://codereview.chromium.org/281093002/diff/1/tools/cygprofile/mergetraces.py#newcode138 tools/cygprofile/mergetraces.py:138: def GroupByProcessAndThreadId(sorted_trace): On 2014/06/05 12:16:36, pasko wrote: ...
6 years, 6 months ago (2014-06-05 12:38:52 UTC) #4
pasko
LGTM! Great! Special thanks for the new test. https://codereview.chromium.org/281093002/diff/40001/tools/cygprofile/mergetraces.py File tools/cygprofile/mergetraces.py (right): https://codereview.chromium.org/281093002/diff/40001/tools/cygprofile/mergetraces.py#newcode221 tools/cygprofile/mergetraces.py:221: merged_trace ...
6 years, 6 months ago (2014-06-05 12:50:10 UTC) #5
Philippe
Thanks, Egor! https://codereview.chromium.org/281093002/diff/40001/tools/cygprofile/mergetraces.py File tools/cygprofile/mergetraces.py (right): https://codereview.chromium.org/281093002/diff/40001/tools/cygprofile/mergetraces.py#newcode221 tools/cygprofile/mergetraces.py:221: merged_trace = None On 2014/06/05 12:50:10, pasko ...
6 years, 6 months ago (2014-06-05 13:00:45 UTC) #6
pasko
6 years, 6 months ago (2014-06-11 12:19:19 UTC) #7
This was committed as r275076, not sure why the codereview issue is not closed.
Thanks infrastructure.

Closing.

Powered by Google App Engine
This is Rietveld 408576698