|
|
[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
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
|
Total messages: 68 (58 generated)
|