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

Issue 2197563002: tracing v2: minor refactoring to TraceRingBuffer test helpers (Closed)

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

Description

tracing v2: minor refactoring to TraceRingBuffer test helpers Minor refactoring in preparation of the chunk writer logic, mostly about testing helper methods that will be shared by upcoming unittests. This CL also introduces a ReserveBytesUnsafe() method to ScatteredStreamWriter which will be used by the writer fast-paths. BUG=608719 TEST=TraceRingBufferTest.*,ScatteredStreamWriterTest.* Committed: https://crrev.com/9911b654f723c480228e9bbfc376222eebe34297 Cr-Commit-Position: refs/heads/master@{#410035}

Patch Set 1 #

Total comments: 14

Patch Set 2 : alph review #

Patch Set 3 : constexpr instead of const to fix linking errors #

Patch Set 4 : move const outside of class #

Patch Set 5 : git cl format #

Total comments: 2

Patch Set 6 : simpler check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+104 lines, -33 lines) Patch
M components/tracing/core/scattered_stream_writer.h View 1 2 chunks +11 lines, -0 lines 0 comments Download
M components/tracing/core/scattered_stream_writer_unittest.cc View 1 2 chunks +9 lines, -3 lines 0 comments Download
M components/tracing/core/trace_ring_buffer.h View 1 2 3 3 chunks +33 lines, -8 lines 0 comments Download
M components/tracing/core/trace_ring_buffer.cc View 1 2 3 4 5 4 chunks +31 lines, -7 lines 0 comments Download
M components/tracing/core/trace_ring_buffer_unittest.cc View 2 chunks +20 lines, -15 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 35 (25 generated)
Primiano Tucci (use gerrit)
quite boring, just need to make the next cl less scary.
4 years, 4 months ago (2016-07-29 09:26:47 UTC) #4
alph
https://codereview.chromium.org/2197563002/diff/1/components/tracing/core/scattered_stream_writer.h File components/tracing/core/scattered_stream_writer.h (right): https://codereview.chromium.org/2197563002/diff/1/components/tracing/core/scattered_stream_writer.h#newcode59 components/tracing/core/scattered_stream_writer.h:59: template <size_t size> uint8_t* ReserveBytesUnsafe() { Why it needs ...
4 years, 4 months ago (2016-07-30 07:41:15 UTC) #7
Primiano Tucci (use gerrit)
thanks https://codereview.chromium.org/2197563002/diff/1/components/tracing/core/scattered_stream_writer.h File components/tracing/core/scattered_stream_writer.h (right): https://codereview.chromium.org/2197563002/diff/1/components/tracing/core/scattered_stream_writer.h#newcode59 components/tracing/core/scattered_stream_writer.h:59: template <size_t size> uint8_t* ReserveBytesUnsafe() { On 2016/07/30 ...
4 years, 4 months ago (2016-08-04 15:26:55 UTC) #10
Primiano Tucci (use gerrit)
https://codereview.chromium.org/2197563002/diff/1/components/tracing/core/trace_ring_buffer.cc File components/tracing/core/trace_ring_buffer.cc (right): https://codereview.chromium.org/2197563002/diff/1/components/tracing/core/trace_ring_buffer.cc#newcode69 components/tracing/core/trace_ring_buffer.cc:69: return chunk->begin() >= chunks_[num_chunks_ - 1].end() || Thinking more, ...
4 years, 4 months ago (2016-08-04 15:33:50 UTC) #11
Primiano Tucci (use gerrit)
+oystein, welcome back :)
4 years, 4 months ago (2016-08-04 17:35:26 UTC) #21
alph
lgtm https://codereview.chromium.org/2197563002/diff/80001/components/tracing/core/trace_ring_buffer.cc File components/tracing/core/trace_ring_buffer.cc (right): https://codereview.chromium.org/2197563002/diff/80001/components/tracing/core/trace_ring_buffer.cc#newcode71 components/tracing/core/trace_ring_buffer.cc:71: return chunk->begin() >= chunks_[num_chunks_ - 1].end() || I'm ...
4 years, 4 months ago (2016-08-04 19:27:35 UTC) #24
Primiano Tucci (use gerrit)
https://codereview.chromium.org/2197563002/diff/80001/components/tracing/core/trace_ring_buffer.cc File components/tracing/core/trace_ring_buffer.cc (right): https://codereview.chromium.org/2197563002/diff/80001/components/tracing/core/trace_ring_buffer.cc#newcode71 components/tracing/core/trace_ring_buffer.cc:71: return chunk->begin() >= chunks_[num_chunks_ - 1].end() || On 2016/08/04 ...
4 years, 4 months ago (2016-08-05 11:24:15 UTC) #29
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/2197563002/100001
4 years, 4 months ago (2016-08-05 11:25:01 UTC) #32
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 4 months ago (2016-08-05 12:03:01 UTC) #33
commit-bot: I haz the power
4 years, 4 months ago (2016-08-05 12:05:31 UTC) #35
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/9911b654f723c480228e9bbfc376222eebe34297
Cr-Commit-Position: refs/heads/master@{#410035}

Powered by Google App Engine
This is Rietveld 408576698