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

Issue 2739163004: [tracing] Use same code path for category filtering for recording and event filtering (Closed)

Created:
3 years, 9 months ago by ssid
Modified:
3 years, 9 months ago
CC:
chromium-reviews, tracing+reviews_chromium.org, vmpstr+watch_chromium.org, wfh+watch_chromium.org, Primiano Tucci (use gerrit)
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[tracing] Use same code path for category filtering for recording and event filtering Previously there was not way to filter just default categories using the category filtering logic of event filters. This CL refactors the category filtering logic out of TraceConfig and both EventFilterConfig and TraceConfig uses this new class. BUG=700245 Review-Url: https://codereview.chromium.org/2739163004 Cr-Commit-Position: refs/heads/master@{#459557} Committed: https://chromium.googlesource.com/chromium/src/+/114dc8babbde99d54f3f4f41246a19bb1a4c1605

Patch Set 1 #

Patch Set 2 : nit. #

Patch Set 3 : Refactor category filter config. #

Patch Set 4 : with similarity=20 #

Total comments: 5

Patch Set 5 : InitalizeWithString. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+361 lines, -1148 lines) Patch
M base/BUILD.gn View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M base/trace_event/heap_profiler_allocation_context_tracker_unittest.cc View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M base/trace_event/memory_dump_manager.cc View 1 2 3 4 1 chunk +11 lines, -3 lines 0 comments Download
M base/trace_event/trace_config.h View 1 2 6 chunks +16 lines, -46 lines 0 comments Download
M base/trace_event/trace_config.cc View 1 2 3 4 15 chunks +37 lines, -332 lines 0 comments Download
A base/trace_event/trace_config_category_filter.h View 1 2 3 4 1 chunk +86 lines, -0 lines 0 comments Download
A + base/trace_event/trace_config_category_filter.cc View 1 2 3 4 12 chunks +107 lines, -696 lines 0 comments Download
M base/trace_event/trace_config_unittest.cc View 1 2 9 chunks +69 lines, -62 lines 0 comments Download
M base/trace_event/trace_event_unittest.cc View 1 2 7 chunks +29 lines, -8 lines 0 comments Download

Messages

Total messages: 37 (20 generated)
ssid
Oystein, wdyt?
3 years, 9 months ago (2017-03-10 04:19:18 UTC) #2
ssid
On 2017/03/10 04:19:18, ssid wrote: > Oystein, wdyt? @oysteine ping.
3 years, 9 months ago (2017-03-15 18:06:36 UTC) #8
oystein (OOO til 10th of July)
The logic of the categoryfilter stuff is already super convoluted, I really don't think we ...
3 years, 9 months ago (2017-03-16 02:00:24 UTC) #9
oystein (OOO til 10th of July)
On 2017/03/16 at 02:00:24, oystein wrote: > The logic of the categoryfilter stuff is already ...
3 years, 9 months ago (2017-03-16 02:01:02 UTC) #10
ssid
On 2017/03/16 02:01:02, oystein wrote: > On 2017/03/16 at 02:00:24, oystein wrote: > > The ...
3 years, 9 months ago (2017-03-16 18:24:56 UTC) #11
Primiano Tucci (use gerrit)
On 2017/03/16 18:24:56, ssid wrote: > On 2017/03/16 02:01:02, oystein wrote: > > On 2017/03/16 ...
3 years, 9 months ago (2017-03-16 18:35:38 UTC) #12
ssid
On 2017/03/16 18:35:38, Primiano Tucci (slow - perf) wrote: > On 2017/03/16 18:24:56, ssid wrote: ...
3 years, 9 months ago (2017-03-16 18:42:41 UTC) #13
oysteine
On 2017/03/16 18:42:41, ssid wrote: > On 2017/03/16 18:35:38, Primiano Tucci (slow - perf) wrote: ...
3 years, 9 months ago (2017-03-16 19:34:02 UTC) #14
ssid
On 2017/03/16 19:34:02, oysteine wrote: > On 2017/03/16 18:42:41, ssid wrote: > > On 2017/03/16 ...
3 years, 9 months ago (2017-03-16 19:40:45 UTC) #15
oystein (OOO til 10th of July)
On 2017/03/16 at 19:40:45, ssid wrote: > On 2017/03/16 19:34:02, oysteine wrote: > > On ...
3 years, 9 months ago (2017-03-20 18:35:53 UTC) #16
ssid
I split the category logic out of trace_config and used it for both trace config ...
3 years, 9 months ago (2017-03-23 02:53:28 UTC) #22
oystein (OOO til 10th of July)
Thanks so much for doing this! Enthusiastic lgtm. https://codereview.chromium.org/2739163004/diff/60001/base/trace_event/trace_config_category_filter.h File base/trace_event/trace_config_category_filter.h (right): https://codereview.chromium.org/2739163004/diff/60001/base/trace_event/trace_config_category_filter.h#newcode31 base/trace_event/trace_config_category_filter.h:31: void ...
3 years, 9 months ago (2017-03-24 17:59:25 UTC) #23
ssid
+dcheng for BUILD file change. ptal, Thanks
3 years, 9 months ago (2017-03-24 18:07:51 UTC) #25
dcheng
LGTM https://codereview.chromium.org/2739163004/diff/60001/base/trace_event/trace_config_category_filter.h File base/trace_event/trace_config_category_filter.h (right): https://codereview.chromium.org/2739163004/diff/60001/base/trace_event/trace_config_category_filter.h#newcode56 base/trace_event/trace_config_category_filter.h:56: static bool IsCategoryNameAllowed(StringPiece str); On 2017/03/24 17:59:25, oystein ...
3 years, 9 months ago (2017-03-24 18:12:47 UTC) #26
ssid
Thanks, fixed. https://codereview.chromium.org/2739163004/diff/60001/base/trace_event/trace_config_category_filter.h File base/trace_event/trace_config_category_filter.h (right): https://codereview.chromium.org/2739163004/diff/60001/base/trace_event/trace_config_category_filter.h#newcode31 base/trace_event/trace_config_category_filter.h:31: void InitializeFromStrings(const StringPiece& category_filter_string); On 2017/03/24 17:59:25, ...
3 years, 9 months ago (2017-03-24 18:59:23 UTC) #27
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/2739163004/80001
3 years, 9 months ago (2017-03-24 21:23:16 UTC) #34
commit-bot: I haz the power
3 years, 9 months ago (2017-03-24 21:30:08 UTC) #37
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/114dc8babbde99d54f3f4f41246a...

Powered by Google App Engine
This is Rietveld 408576698