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

Issue 971673004: Enable trace with multiple categories with any one category ON (Closed)

Created:
5 years, 9 months ago by r.kasibhatla
Modified:
5 years, 9 months ago
Reviewers:
danakj, dsinclair, nduca
CC:
chromium-reviews, erikwright+watch_chromium.org, RaviKasibhatla, tracing+reviews_chromium.org, wfh+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Enable trace with multiple categories with any one category ON As per documentation https://code.google.com/p/chromium/codesearch#chromium/src/base/trace_event/trace_event.h&l=27 for any trace event which specifies category group, the trace event needs to be recorded when either of category present in the group is enabled. Current implementation short circuits the check for enabled category group and returns false as soon as any category is found which is not enabled. Rather, short circuit for returning true when any enabled category is found. Otherwise, should check for each category present in the group until any one enabled category is found. Return false only if no enabled category is found. BUG=463385 TESTS=Updated TraceEventTestFixture tests in base_unittests Committed: https://crrev.com/2c3eb845ad50b3f7fd8f4b675c21e04cc393d9b0 Cr-Commit-Position: refs/heads/master@{#319417}

Patch Set 1 #

Patch Set 2 : Fixed the unit tests! #

Patch Set 3 : Updated the commit message! #

Patch Set 4 : #

Total comments: 3

Patch Set 5 : Reworked as per comments! #

Total comments: 4

Patch Set 6 : Patch for landing! #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -11 lines) Patch
M base/trace_event/trace_event_impl.cc View 1 2 3 4 5 1 chunk +20 lines, -3 lines 0 comments Download
M base/trace_event/trace_event_unittest.cc View 1 2 chunks +8 lines, -8 lines 0 comments Download

Messages

Total messages: 15 (3 generated)
r.kasibhatla
PTAL!!!
5 years, 9 months ago (2015-03-03 08:15:48 UTC) #2
dsinclair
https://codereview.chromium.org/971673004/diff/60001/base/trace_event/trace_event_impl.cc File base/trace_event/trace_event_impl.cc (right): https://codereview.chromium.org/971673004/diff/60001/base/trace_event/trace_event_impl.cc#newcode2493 base/trace_event/trace_event_impl.cc:2493: bool had_category_group_enabled = true; This flag is backwards to ...
5 years, 9 months ago (2015-03-03 14:54:05 UTC) #3
r.kasibhatla
On 2015/03/03 at 14:54:05, dsinclair wrote: > https://codereview.chromium.org/971673004/diff/60001/base/trace_event/trace_event_impl.cc > File base/trace_event/trace_event_impl.cc (right): > > https://codereview.chromium.org/971673004/diff/60001/base/trace_event/trace_event_impl.cc#newcode2493 ...
5 years, 9 months ago (2015-03-04 05:06:16 UTC) #4
r.kasibhatla
gentle ping!!!
5 years, 9 months ago (2015-03-06 03:41:45 UTC) #5
dsinclair
lgtm with nit. https://codereview.chromium.org/971673004/diff/80001/base/trace_event/trace_event_impl.cc File base/trace_event/trace_event_impl.cc (right): https://codereview.chromium.org/971673004/diff/80001/base/trace_event/trace_event_impl.cc#newcode2503 base/trace_event/trace_event_impl.cc:2503: all_category_groups_disabled = true; This isn't really ...
5 years, 9 months ago (2015-03-06 04:04:45 UTC) #6
r.kasibhatla
On 2015/03/06 at 04:04:45, dsinclair wrote: > lgtm with nit. > > https://codereview.chromium.org/971673004/diff/80001/base/trace_event/trace_event_impl.cc > File ...
5 years, 9 months ago (2015-03-06 04:10:34 UTC) #7
dsinclair
On 2015/03/06 at 04:10:34, r.kasibhatla wrote: > On 2015/03/06 at 04:04:45, dsinclair wrote: > > ...
5 years, 9 months ago (2015-03-06 04:13:37 UTC) #8
r.kasibhatla
On 2015/03/06 at 04:13:37, dsinclair wrote: > On 2015/03/06 at 04:10:34, r.kasibhatla wrote: > > ...
5 years, 9 months ago (2015-03-06 04:17:54 UTC) #9
r.kasibhatla
https://codereview.chromium.org/971673004/diff/80001/base/trace_event/trace_event_impl.cc File base/trace_event/trace_event_impl.cc (right): https://codereview.chromium.org/971673004/diff/80001/base/trace_event/trace_event_impl.cc#newcode2503 base/trace_event/trace_event_impl.cc:2503: all_category_groups_disabled = true; On 2015/03/06 at 04:04:45, dsinclair wrote: ...
5 years, 9 months ago (2015-03-06 04:19:32 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/971673004/100001
5 years, 9 months ago (2015-03-06 04:20:45 UTC) #13
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 9 months ago (2015-03-06 06:17:11 UTC) #14
commit-bot: I haz the power
5 years, 9 months ago (2015-03-06 06:17:55 UTC) #15
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/2c3eb845ad50b3f7fd8f4b675c21e04cc393d9b0
Cr-Commit-Position: refs/heads/master@{#319417}

Powered by Google App Engine
This is Rietveld 408576698