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

Issue 2755943002: tracing: Stream processing for some importers (Closed)

Created:
3 years, 9 months ago by chiniforooshan
Modified:
3 years, 8 months ago
CC:
benjhayden, catapult-reviews_chromium.org, charliea (OOO until 10-5), tracing-review_chromium.org, ehmaldonado_chromium
Target Ref:
refs/heads/master
Project:
catapult
Visibility:
Public.

Description

tracing: Stream processing for some importers This implements stream processing for trace event importer, gzip importer, and Linux trace event importer. A tr.useTraceStreams flag is introduced and is disabled by default, for now, until all importers support stream processing and the performance is reasonable. I tested that if I set tr.useTraceStream to true, I can successfully run trace_processor/bin/process_traces on a ~700M trace file. However, it is slow. The source of slowness is oboe.js itself. After a little bit investigation, I think there are some optimizations that can be done in oboe.js, which I will send in future CLs. Note that this is still with the assumption that traces fit in memory. If we want to get rid of this assumption in the future: - d8 should support reading chunks of data from a file. - tr.b.TraceStream read methods should return promises. - oboe.js should support returning just the start and end position of a value instead of the value itself, for values that do not fit in memory. BUG=catapult:#2826 Review-Url: https://codereview.chromium.org/2755943002 Committed: https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/cd51f067a7d5d33d695016bd1dc8a139bf736338

Patch Set 1 #

Patch Set 2 : disable trace streams by default #

Total comments: 6

Patch Set 3 : review #

Total comments: 20

Patch Set 4 : review #

Patch Set 5 : review #

Patch Set 6 : review #

Patch Set 7 : nit #

Patch Set 8 : sync #

Total comments: 2

Patch Set 9 : review #

Patch Set 10 : review / sync #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3747 lines, -3150 lines) Patch
M tracing/trace_viewer.gypi View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -0 lines 0 comments Download
M tracing/tracing/base/in_memory_trace_stream.html View 1 2 3 4 5 6 7 1 chunk +9 lines, -0 lines 0 comments Download
M tracing/tracing/base/xhr.html View 1 2 3 4 5 6 7 3 chunks +8 lines, -2 lines 0 comments Download
M tracing/tracing/extras/importer/gzip_importer.html View 1 2 3 4 5 6 7 6 chunks +25 lines, -3 lines 0 comments Download
M tracing/tracing/extras/importer/gzip_importer_test.html View 1 2 3 4 5 6 7 3 chunks +5 lines, -2 lines 0 comments Download
M tracing/tracing/extras/importer/linux_perf/ftrace_importer.html View 1 2 3 4 5 6 7 8 9 12 chunks +74 lines, -103 lines 0 comments Download
M tracing/tracing/extras/importer/linux_perf/ftrace_importer_test.html View 1 2 3 4 5 6 7 8 9 2 chunks +47 lines, -0 lines 0 comments Download
M tracing/tracing/extras/importer/trace_event_importer.html View 1 2 3 4 5 6 7 10 chunks +205 lines, -99 lines 0 comments Download
M tracing/tracing/extras/importer/trace_event_importer_test.html View 1 2 3 4 5 6 7 8 9 119 chunks +3313 lines, -2917 lines 0 comments Download
M tracing/tracing/importer/simple_line_reader.html View 1 2 3 4 5 6 7 1 chunk +56 lines, -23 lines 0 comments Download
M tracing/tracing/mre/file_handle.html View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 46 (24 generated)
chiniforooshan
PTAL
3 years, 9 months ago (2017-03-16 16:37:40 UTC) #2
charliea (OOO until 10-5)
3 years, 9 months ago (2017-03-16 18:36:22 UTC) #4
eakuefner
Providing a drive-by prereview as a non-expert in importing, this looks great. https://codereview.chromium.org/2755943002/diff/20001/tracing/tracing/extras/importer/gzip_importer_test.html File tracing/tracing/extras/importer/gzip_importer_test.html ...
3 years, 9 months ago (2017-03-17 20:18:14 UTC) #5
chiniforooshan
Sorry for the delay. I just came back from a 2-week vacation today. https://codereview.chromium.org/2755943002/diff/20001/tracing/tracing/extras/importer/gzip_importer_test.html File ...
3 years, 8 months ago (2017-04-04 16:42:00 UTC) #6
nednguyen
On 2017/04/04 16:42:00, chiniforooshan wrote: > Sorry for the delay. I just came back from ...
3 years, 8 months ago (2017-04-04 18:02:00 UTC) #7
nednguyen
On 2017/04/04 18:02:00, nednguyen (slow til 4-10) wrote: > On 2017/04/04 16:42:00, chiniforooshan wrote: > ...
3 years, 8 months ago (2017-04-04 18:02:55 UTC) #10
chiniforooshan
Ethan has started reviewing, already. So, I moved others to the CC. But, of course, ...
3 years, 8 months ago (2017-04-04 18:19:53 UTC) #12
benjhayden
Some nits and a couple questions. Should there be any changes to the trace_event_importer_test? https://codereview.chromium.org/2755943002/diff/40001/tracing/tracing/base/base.html ...
3 years, 8 months ago (2017-04-04 18:48:15 UTC) #15
chiniforooshan
Thanks Ben for reviewing. I modified almost all test cases in trace_event_importer_test to also run ...
3 years, 8 months ago (2017-04-07 00:51:06 UTC) #16
benjhayden
https://codereview.chromium.org/2755943002/diff/40001/tracing/tracing/importer/simple_line_reader.html File tracing/tracing/importer/simple_line_reader.html (right): https://codereview.chromium.org/2755943002/diff/40001/tracing/tracing/importer/simple_line_reader.html#newcode40 tracing/tracing/importer/simple_line_reader.html:40: get nextLine() { On 2017/04/07 at 00:51:06, chiniforooshan wrote: ...
3 years, 8 months ago (2017-04-07 16:43:22 UTC) #17
chiniforooshan
https://codereview.chromium.org/2755943002/diff/40001/tracing/tracing/importer/simple_line_reader.html File tracing/tracing/importer/simple_line_reader.html (right): https://codereview.chromium.org/2755943002/diff/40001/tracing/tracing/importer/simple_line_reader.html#newcode40 tracing/tracing/importer/simple_line_reader.html:40: get nextLine() { On 2017/04/07 16:43:22, benjhayden wrote: > ...
3 years, 8 months ago (2017-04-10 17:27:13 UTC) #18
chiniforooshan
ping
3 years, 8 months ago (2017-04-13 14:12:02 UTC) #27
fmeawad
On 2017/04/13 14:12:02, chiniforooshan wrote: > ping Since ben and charlie are OOO, I will ...
3 years, 8 months ago (2017-04-14 16:23:38 UTC) #28
eakuefner
lgtm with one question, but please do wait for fadi to take a look. https://codereview.chromium.org/2755943002/diff/140001/tracing/tracing/extras/importer/trace_event_importer_test.html ...
3 years, 8 months ago (2017-04-14 17:42:08 UTC) #30
fmeawad
lgtm
3 years, 8 months ago (2017-04-14 22:05:39 UTC) #31
chiniforooshan
https://codereview.chromium.org/2755943002/diff/140001/tracing/tracing/extras/importer/trace_event_importer_test.html File tracing/tracing/extras/importer/trace_event_importer_test.html (right): https://codereview.chromium.org/2755943002/diff/140001/tracing/tracing/extras/importer/trace_event_importer_test.html#newcode6268 tracing/tracing/extras/importer/trace_event_importer_test.html:6268: // TODO(chiniforooshan): When the input is a trace stream, ...
3 years, 8 months ago (2017-04-21 15:07:33 UTC) #32
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/2755943002/180001
3 years, 8 months ago (2017-04-21 15:07:49 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: Catapult Mac Tryserver on master.tryserver.client.catapult (JOB_FAILED, https://build.chromium.org/p/tryserver.client.catapult/builders/Catapult%20Mac%20Tryserver/builds/7279)
3 years, 8 months ago (2017-04-21 16:09:56 UTC) #37
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/2755943002/180001
3 years, 8 months ago (2017-04-21 16:21:36 UTC) #39
commit-bot: I haz the power
Try jobs failed on following builders: Catapult Mac Tryserver on master.tryserver.client.catapult (JOB_FAILED, https://build.chromium.org/p/tryserver.client.catapult/builders/Catapult%20Mac%20Tryserver/builds/7281)
3 years, 8 months ago (2017-04-21 17:23:34 UTC) #41
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/2755943002/180001
3 years, 8 months ago (2017-04-21 20:03:16 UTC) #43
commit-bot: I haz the power
3 years, 8 months ago (2017-04-21 20:13:42 UTC) #46
Message was sent while issue was closed.
Committed patchset #10 (id:180001) as
https://chromium.googlesource.com/external/github.com/catapult-project/catapu...

Powered by Google App Engine
This is Rietveld 408576698