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

Issue 2047273002: tracing v2: Add ScatteredStreamWriter (Closed)

Created:
4 years, 6 months ago by Primiano Tucci (use gerrit)
Modified:
4 years, 5 months ago
CC:
chromium-reviews, tracing+reviews_chromium.org, wfh+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@tv_ups1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

tracing v2: Add ScatteredStreamWriter ScatteredStreamWriter is the core class that will be used to serialize proto messages in flight into the trace buffer chunks. This class handles writes and spreads them over non-contiguous memory chunks without causing extra copies. BUG=608719 Committed: https://crrev.com/ef9be0368adbf4cff57b908f2bb5ed67db4a18c3 Cr-Commit-Position: refs/heads/master@{#403177}

Patch Set 1 #

Total comments: 13

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Total comments: 36

Patch Set 5 : Meh, <algorithm> required for std::min, ooh la la #

Patch Set 6 : petrcermak review #

Total comments: 2

Patch Set 7 : Typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+273 lines, -0 lines) Patch
M components/components_tests.gyp View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/tracing.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
M components/tracing/BUILD.gn View 2 chunks +3 lines, -0 lines 0 comments Download
A components/tracing/core/scattered_stream_writer.h View 1 2 3 4 5 1 chunk +76 lines, -0 lines 0 comments Download
A components/tracing/core/scattered_stream_writer.cc View 1 2 3 4 5 6 1 chunk +79 lines, -0 lines 0 comments Download
A components/tracing/core/scattered_stream_writer_unittest.cc View 1 2 3 4 5 1 chunk +112 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 22 (11 generated)
Primiano Tucci (use gerrit)
2nd piece after https://codereview.chromium.org/2049653002/
4 years, 6 months ago (2016-06-08 10:06:35 UTC) #3
oystein (OOO til 10th of July)
I think the design is great, especially being agnostic to the underlying buffer. Minor comments ...
4 years, 6 months ago (2016-06-15 08:35:10 UTC) #4
alph
https://codereview.chromium.org/2047273002/diff/1/components/tracing/core/scattered_stream_writer.cc File components/tracing/core/scattered_stream_writer.cc (right): https://codereview.chromium.org/2047273002/diff/1/components/tracing/core/scattered_stream_writer.cc#newcode43 components/tracing/core/scattered_stream_writer.cc:43: // a tracing hot path. Looks like this is ...
4 years, 6 months ago (2016-06-15 10:08:22 UTC) #6
Primiano Tucci (use gerrit)
+petrcermak https://codereview.chromium.org/2047273002/diff/1/components/tracing/core/scattered_stream_writer.cc File components/tracing/core/scattered_stream_writer.cc (right): https://codereview.chromium.org/2047273002/diff/1/components/tracing/core/scattered_stream_writer.cc#newcode28 components/tracing/core/scattered_stream_writer.cc:28: void ScatteredStreamWriter::Expand() { On 2016/06/15 08:35:09, Oystein (OOO ...
4 years, 5 months ago (2016-06-29 09:32:02 UTC) #8
petrcermak
Patch description comments: 1) I don't understand what "will be used BY proto messages to ...
4 years, 5 months ago (2016-06-29 10:27:49 UTC) #9
Primiano Tucci (use gerrit)
Thanks. Replies inline + new patchset. https://codereview.chromium.org/2047273002/diff/60001/components/tracing/core/scattered_stream_writer.cc File components/tracing/core/scattered_stream_writer.cc (right): https://codereview.chromium.org/2047273002/diff/60001/components/tracing/core/scattered_stream_writer.cc#newcode32 components/tracing/core/scattered_stream_writer.cc:32: if (write_ptr_ >= ...
4 years, 5 months ago (2016-06-30 12:17:35 UTC) #12
petrcermak
LGTM. Thanks, Petr https://codereview.chromium.org/2047273002/diff/120001/components/tracing/core/scattered_stream_writer.cc File components/tracing/core/scattered_stream_writer.cc (right): https://codereview.chromium.org/2047273002/diff/120001/components/tracing/core/scattered_stream_writer.cc#newcode66 components/tracing/core/scattered_stream_writer.cc:66: nit: this blank line seems unnecessary ...
4 years, 5 months ago (2016-06-30 12:39:05 UTC) #14
Primiano Tucci (use gerrit)
https://codereview.chromium.org/2047273002/diff/120001/components/tracing/core/scattered_stream_writer.cc File components/tracing/core/scattered_stream_writer.cc (right): https://codereview.chromium.org/2047273002/diff/120001/components/tracing/core/scattered_stream_writer.cc#newcode66 components/tracing/core/scattered_stream_writer.cc:66: On 2016/06/30 12:39:04, petrcermak wrote: > nit: this blank ...
4 years, 5 months ago (2016-06-30 14:41:24 UTC) #15
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/2047273002/140001
4 years, 5 months ago (2016-06-30 14:41:54 UTC) #18
commit-bot: I haz the power
Committed patchset #7 (id:140001)
4 years, 5 months ago (2016-06-30 15:09:52 UTC) #20
commit-bot: I haz the power
4 years, 5 months ago (2016-06-30 15:11:31 UTC) #22
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/ef9be0368adbf4cff57b908f2bb5ed67db4a18c3
Cr-Commit-Position: refs/heads/master@{#403177}

Powered by Google App Engine
This is Rietveld 408576698