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

Issue 2043913006: tracing v2: Add proto_utils.h (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_ups2
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

tracing v2: Add proto_utils.h Adds basic support for proto encoding. This will be used by the TracingV2 core classes which, for performance reasons, need to serialize protos independently of libprotobuf. More discussion in the design doc: bit.ly/TracingV2 BUG=608719 Committed: https://crrev.com/557ed0bee30e466fd37e1c1a40a8ed26654dbf96 Cr-Commit-Position: refs/heads/master@{#404671}

Patch Set 1 #

Total comments: 10

Patch Set 2 : address review comments #

Total comments: 8

Patch Set 3 : remove inline from WriteRedundantVarIntUnsigned #

Total comments: 22

Patch Set 4 : alph+petr review #

Total comments: 4

Patch Set 5 : nit + fix last test #

Patch Set 6 : rebase #

Patch Set 7 : rebase #

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

Dependent Patchsets:

Messages

Total messages: 28 (11 generated)
Primiano Tucci (use gerrit)
Part 3 after https://codereview.chromium.org/2049653002/ and https://codereview.chromium.org/2047273002/
4 years, 6 months ago (2016-06-08 10:08:37 UTC) #2
oystein (OOO til 10th of July)
https://codereview.chromium.org/2043913006/diff/1/components/tracing/core/proto_utils.h File components/tracing/core/proto_utils.h (right): https://codereview.chromium.org/2043913006/diff/1/components/tracing/core/proto_utils.h#newcode72 components/tracing/core/proto_utils.h:72: inline void WriteRedundantVarIntUnsigned(uint32_t value, Can you expand a bit ...
4 years, 6 months ago (2016-06-15 08:45:44 UTC) #3
Primiano Tucci (use gerrit)
https://codereview.chromium.org/2043913006/diff/1/components/tracing/core/proto_utils.h File components/tracing/core/proto_utils.h (right): https://codereview.chromium.org/2043913006/diff/1/components/tracing/core/proto_utils.h#newcode72 components/tracing/core/proto_utils.h:72: inline void WriteRedundantVarIntUnsigned(uint32_t value, On 2016/06/15 08:45:44, Oystein wrote: ...
4 years, 6 months ago (2016-06-15 09:02:13 UTC) #4
kraynov
https://codereview.chromium.org/2043913006/diff/1/components/tracing/core/proto_utils.h File components/tracing/core/proto_utils.h (right): https://codereview.chromium.org/2043913006/diff/1/components/tracing/core/proto_utils.h#newcode37 components/tracing/core/proto_utils.h:37: // 64-bit fixed-length field types: fixed32, sfixed32, float. nit: ...
4 years, 6 months ago (2016-06-22 16:38:32 UTC) #5
kraynov
https://codereview.chromium.org/2043913006/diff/1/components/tracing/core/proto_utils.h File components/tracing/core/proto_utils.h (right): https://codereview.chromium.org/2043913006/diff/1/components/tracing/core/proto_utils.h#newcode23 components/tracing/core/proto_utils.h:23: kFieldTypeLengthLimited = 2, ...LengthDelimited For consistency with https://developers.google.com/protocol-buffers/docs/encoding https://codereview.chromium.org/2043913006/diff/1/components/tracing/core/proto_utils.h#newcode33 ...
4 years, 5 months ago (2016-07-05 11:25:09 UTC) #6
Primiano Tucci (use gerrit)
+Petr https://codereview.chromium.org/2043913006/diff/1/components/tracing/core/proto_utils.h File components/tracing/core/proto_utils.h (right): https://codereview.chromium.org/2043913006/diff/1/components/tracing/core/proto_utils.h#newcode23 components/tracing/core/proto_utils.h:23: kFieldTypeLengthLimited = 2, On 2016/07/05 11:25:09, kraynov wrote: ...
4 years, 5 months ago (2016-07-06 16:52:55 UTC) #8
alph
https://codereview.chromium.org/2043913006/diff/20001/components/tracing/core/proto_utils.h File components/tracing/core/proto_utils.h (right): https://codereview.chromium.org/2043913006/diff/20001/components/tracing/core/proto_utils.h#newcode48 components/tracing/core/proto_utils.h:48: inline uint8_t* WriteVarIntInternal(T value, uint8_t* target) { Maybe add ...
4 years, 5 months ago (2016-07-06 17:29:52 UTC) #11
petrcermak
Looks very good overall. Here's just a couple of code style comments (sorry for being ...
4 years, 5 months ago (2016-07-07 09:47:00 UTC) #12
Primiano Tucci (use gerrit)
Thanks. Replies inline below. https://codereview.chromium.org/2043913006/diff/20001/components/tracing/core/proto_utils.h File components/tracing/core/proto_utils.h (right): https://codereview.chromium.org/2043913006/diff/20001/components/tracing/core/proto_utils.h#newcode48 components/tracing/core/proto_utils.h:48: inline uint8_t* WriteVarIntInternal(T value, uint8_t* ...
4 years, 5 months ago (2016-07-07 12:59:26 UTC) #13
petrcermak
LGTM with some final comments. Thanks, Petr https://codereview.chromium.org/2043913006/diff/60001/components/tracing/core/proto_utils.h File components/tracing/core/proto_utils.h (right): https://codereview.chromium.org/2043913006/diff/60001/components/tracing/core/proto_utils.h#newcode76 components/tracing/core/proto_utils.h:76: // are ...
4 years, 5 months ago (2016-07-07 13:08:17 UTC) #14
Primiano Tucci (use gerrit)
https://codereview.chromium.org/2043913006/diff/60001/components/tracing/core/proto_utils.h File components/tracing/core/proto_utils.h (right): https://codereview.chromium.org/2043913006/diff/60001/components/tracing/core/proto_utils.h#newcode76 components/tracing/core/proto_utils.h:76: // are reserved to encode the size field and ...
4 years, 5 months ago (2016-07-07 15:48:38 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/2043913006/80001
4 years, 5 months ago (2016-07-08 07:28:22 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: ios-device-gn on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-gn/builds/33062)
4 years, 5 months ago (2016-07-08 07:32:42 UTC) #20
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/2043913006/120001
4 years, 5 months ago (2016-07-11 15:39:12 UTC) #23
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 5 months ago (2016-07-11 16:30:10 UTC) #25
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-11 16:30:12 UTC) #26
commit-bot: I haz the power
4 years, 5 months ago (2016-07-11 16:31:44 UTC) #28
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/557ed0bee30e466fd37e1c1a40a8ed26654dbf96
Cr-Commit-Position: refs/heads/master@{#404671}

Powered by Google App Engine
This is Rietveld 408576698