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

Issue 2619073002: [Telemetry] Change trace_data to hold a list of raw trace data for each trace part (Closed)

Created:
3 years, 11 months ago by nednguyen
Modified:
3 years, 11 months ago
CC:
catapult-reviews_chromium.org, telemetry-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
catapult
Visibility:
Public.

Description

[Telemetry] Change trace_data to hold a list of raw trace data for each trace part Motivation: in order to change trace_data to keep the raw trace data on disk instead of in memory, we have to remove the need to unpack the raw trace data up front. Previous to this CL, trace data hold one single raw trace data for each trace part. Therefore when we have multiple Chrome traces in a multi-browser testing case, tracing_controller_backend need to merge all the raw trace data into one. And such merging operation requires all the traces to be in memory. The main changes are in trace_data.py. In addition, with this CL, merging multiple chrome traces is handled by 1) trace_event_importer.py if the trace parsing is done in Python (mostly for TBM 1.0) 2) trace2html script (see the change to telemetry/telemetry/value/trace.py) Another way to understand the effects of this CL is that we change the data we send to trace processor written in JS from: <script> Combined trace of X & Y (combining this is done in Python) </script> to: <script> Trace of X </script> <script> Trace of Y </script> The logic of merging the traces then will be delayed to Javscript engine which can do this in a much more efficient fashion. BUG=catapult:#3119 Review-Url: https://codereview.chromium.org/2619073002 Committed: https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/279dbaad26cbbda4a1a08d5348cbc0c8e281f838

Patch Set 1 #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+124 lines, -158 lines) Patch
M telemetry/telemetry/core/tracing_controller_unittest.py View 1 chunk +1 line, -1 line 0 comments Download
M telemetry/telemetry/internal/backends/chrome_inspector/devtools_client_backend.py View 1 chunk +2 lines, -3 lines 0 comments Download
M telemetry/telemetry/internal/backends/chrome_inspector/tracing_backend.py View 2 chunks +3 lines, -15 lines 0 comments Download
M telemetry/telemetry/internal/backends/chrome_inspector/tracing_backend_unittest.py View 4 chunks +22 lines, -17 lines 2 comments Download
M telemetry/telemetry/internal/platform/tracing_agent/atrace_tracing_agent.py View 1 chunk +1 line, -1 line 0 comments Download
M telemetry/telemetry/internal/platform/tracing_agent/battor_tracing_agent.py View 1 chunk +1 line, -1 line 0 comments Download
M telemetry/telemetry/internal/platform/tracing_agent/battor_tracing_agent_unittest.py View 1 chunk +3 lines, -3 lines 0 comments Download
M telemetry/telemetry/internal/platform/tracing_agent/cpu_tracing_agent.py View 1 chunk +1 line, -1 line 0 comments Download
M telemetry/telemetry/internal/platform/tracing_agent/cpu_tracing_agent_unittest.py View 3 chunks +3 lines, -3 lines 0 comments Download
M telemetry/telemetry/internal/platform/tracing_agent/display_tracing_agent.py View 1 chunk +1 line, -1 line 0 comments Download
M telemetry/telemetry/internal/platform/tracing_controller_backend.py View 1 chunk +1 line, -1 line 0 comments Download
M telemetry/telemetry/internal/platform/tracing_controller_backend_unittest.py View 1 chunk +10 lines, -3 lines 0 comments Download
M telemetry/telemetry/timeline/inspector_importer.py View 1 chunk +3 lines, -1 line 0 comments Download
M telemetry/telemetry/timeline/inspector_importer_unittest.py View 2 chunks +2 lines, -2 lines 0 comments Download
M telemetry/telemetry/timeline/model_unittest.py View 1 chunk +6 lines, -6 lines 0 comments Download
M telemetry/telemetry/timeline/surface_flinger_importer.py View 1 chunk +3 lines, -2 lines 0 comments Download
M telemetry/telemetry/timeline/tab_id_importer.py View 1 chunk +3 lines, -2 lines 0 comments Download
M telemetry/telemetry/timeline/tab_id_importer_unittest.py View 4 chunks +6 lines, -6 lines 0 comments Download
M telemetry/telemetry/timeline/trace_data.py View 5 chunks +19 lines, -56 lines 0 comments Download
M telemetry/telemetry/timeline/trace_data_unittest.py View 3 chunks +20 lines, -23 lines 0 comments Download
M telemetry/telemetry/timeline/trace_event_importer.py View 1 chunk +3 lines, -2 lines 0 comments Download
M telemetry/telemetry/value/trace.py View 2 chunks +10 lines, -8 lines 3 comments Download

Messages

Total messages: 68 (58 generated)
nednguyen
3 years, 11 months ago (2017-01-12 14:21:29 UTC) #45
nednguyen(REVIEW IN OTHER ACC)
On 2017/01/12 14:21:29, nednguyen wrote: Ping folks
3 years, 11 months ago (2017-01-12 20:30:08 UTC) #53
charliea (OOO until 10-5)
Sorry! Thought I responded earlier. https://codereview.chromium.org/2619073002/diff/160001/telemetry/telemetry/value/trace.py File telemetry/telemetry/value/trace.py (right): https://codereview.chromium.org/2619073002/diff/160001/telemetry/telemetry/value/trace.py#newcode69 telemetry/telemetry/value/trace.py:69: for traces_list, part in ...
3 years, 11 months ago (2017-01-12 21:10:18 UTC) #55
nednguyen
https://codereview.chromium.org/2619073002/diff/160001/telemetry/telemetry/value/trace.py File telemetry/telemetry/value/trace.py (right): https://codereview.chromium.org/2619073002/diff/160001/telemetry/telemetry/value/trace.py#newcode69 telemetry/telemetry/value/trace.py:69: for traces_list, part in self._GetTraceParts(trace_data): On 2017/01/12 21:10:17, charliea ...
3 years, 11 months ago (2017-01-12 21:29:16 UTC) #56
perezju
happy with this if others are happy, I've just left a comment. https://codereview.chromium.org/2619073002/diff/160001/telemetry/telemetry/internal/backends/chrome_inspector/tracing_backend_unittest.py File telemetry/telemetry/internal/backends/chrome_inspector/tracing_backend_unittest.py ...
3 years, 11 months ago (2017-01-13 10:17:01 UTC) #57
nednguyen
https://codereview.chromium.org/2619073002/diff/160001/telemetry/telemetry/internal/backends/chrome_inspector/tracing_backend_unittest.py File telemetry/telemetry/internal/backends/chrome_inspector/tracing_backend_unittest.py (right): https://codereview.chromium.org/2619073002/diff/160001/telemetry/telemetry/internal/backends/chrome_inspector/tracing_backend_unittest.py#newcode170 telemetry/telemetry/internal/backends/chrome_inspector/tracing_backend_unittest.py:170: trace_data.CHROME_TRACE_PART)[0].get('traceEvents', []) On 2017/01/13 10:17:01, perezju wrote: > this ...
3 years, 11 months ago (2017-01-13 15:53:21 UTC) #58
charliea (OOO until 10-5)
lgtm https://codereview.chromium.org/2619073002/diff/160001/telemetry/telemetry/value/trace.py File telemetry/telemetry/value/trace.py (right): https://codereview.chromium.org/2619073002/diff/160001/telemetry/telemetry/value/trace.py#newcode69 telemetry/telemetry/value/trace.py:69: for traces_list, part in self._GetTraceParts(trace_data): Ned and I ...
3 years, 11 months ago (2017-01-13 16:36:47 UTC) #59
nednguyen
On 2017/01/13 16:36:47, charliea wrote: > lgtm > > https://codereview.chromium.org/2619073002/diff/160001/telemetry/telemetry/value/trace.py > File telemetry/telemetry/value/trace.py (right): > ...
3 years, 11 months ago (2017-01-13 16:37:44 UTC) #60
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2619073002/160001
3 years, 11 months ago (2017-01-13 16:41:29 UTC) #65
commit-bot: I haz the power
3 years, 11 months ago (2017-01-13 17:01:55 UTC) #68
Message was sent while issue was closed.
Committed patchset #1 (id:160001) as
https://chromium.googlesource.com/external/github.com/catapult-project/catapu...

Powered by Google App Engine
This is Rietveld 408576698