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

Issue 788243003: Tracing: make filtering logic more intuitive for multiple categories (Closed)

Created:
6 years ago by caseq
Modified:
6 years ago
CC:
chromium-reviews, wfh+watch_chromium.org, dsinclair+watch_chromium.org, erikwright+watch_chromium.org, nduca
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Tracing: make filtering logic more intuitive for multiple categories This changes the way category filter processes multi-categories groups. Previously, adding a disabled-by-default- category to a regular category would prevent the event from matching filter if only regular category is enabled. This is somewhat counter-intuitive, the expected behavior is that each category is processed by the filter independently. The new logic is: 1. if at least one category in event category group matches at least one category enabled in the filter, the event passes; 2. if at least one category in event category group matches at least one category explicitly excluded in the filter, the event is filtered out; 3. the event is passed by default, if included categories list is empty and event has at least one category that is not disabled-by-default-. Note no existing tests were modified (though I'm not sure if (2) should be the way it is). BUG= Committed: https://crrev.com/5262e5a158f6302eb4dac49d416b1a00f37186ba Cr-Commit-Position: refs/heads/master@{#308136}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -34 lines) Patch
M base/debug/trace_event_impl.h View 3 chunks +5 lines, -5 lines 0 comments Download
M base/debug/trace_event_impl.cc View 2 chunks +42 lines, -29 lines 0 comments Download
M base/debug/trace_event_unittest.cc View 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
caseq
I was merely adding another category to an existing trace event in https://codereview.chromium.org/785913003/, but it ...
6 years ago (2014-12-10 16:24:11 UTC) #2
dsinclair
6 years ago (2014-12-10 16:31:27 UTC) #4
dsinclair
On 2014/12/10 16:31:27, dsinclair wrote: Before we do this, can you do a check on ...
6 years ago (2014-12-12 15:16:09 UTC) #5
caseq
On 2014/12/12 15:16:09, dsinclair wrote: > On 2014/12/10 16:31:27, dsinclair wrote: > > Before we ...
6 years ago (2014-12-12 17:45:16 UTC) #6
dsinclair
lgtm
6 years ago (2014-12-12 17:51:39 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/788243003/1
6 years ago (2014-12-12 17:53:05 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
6 years ago (2014-12-12 19:00:47 UTC) #10
commit-bot: I haz the power
6 years ago (2014-12-12 19:01:33 UTC) #11
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/5262e5a158f6302eb4dac49d416b1a00f37186ba
Cr-Commit-Position: refs/heads/master@{#308136}

Powered by Google App Engine
This is Rietveld 408576698