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

Issue 2549103003: tracing: split trace event filter classes out of TraceLog (Closed)

Created:
4 years ago by Primiano Tucci (use gerrit)
Modified:
4 years ago
CC:
chromium-reviews, Dirk Pranke, tfarina, wfh+watch_chromium.org, vmpstr+watch_chromium.org, agrieve+watch_chromium.org, tracing+reviews_chromium.org, fmeawad
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

tracing: split trace event filter classes out of TraceLog Another refactoring aimed at slimming down the TraceLog monster-class and isolating dependencies of the tracing codebase. This CL is a pure refactor with no intended behavioral changes. It moves all the trace filters classes outside of the TraceLog. This is required to make the next CLs which will change the lifetime management of filters easier to review. BUG=659689 Committed: https://crrev.com/a0835eec90a7fa97ea838e93540135115aa833a3 Cr-Commit-Position: refs/heads/master@{#437721}

Patch Set 1 : . #

Total comments: 26

Patch Set 2 : Remove direct coupling between TraceLog and trace_event_filter_test_utils.h #

Total comments: 14

Patch Set 3 : oysteine review, add EventFilterConfig::GetArgAsSet #

Patch Set 4 : Add BASE_EXPORT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+496 lines, -182 lines) Patch
M base/BUILD.gn View 1 5 chunks +9 lines, -0 lines 0 comments Download
M base/trace_event/category_registry.h View 2 chunks +3 lines, -3 lines 0 comments Download
A base/trace_event/event_name_filter.h View 1 2 1 chunk +46 lines, -0 lines 0 comments Download
A base/trace_event/event_name_filter.cc View 1 chunk +26 lines, -0 lines 0 comments Download
A base/trace_event/event_name_filter_unittest.cc View 1 chunk +41 lines, -0 lines 0 comments Download
A base/trace_event/heap_profiler_event_filter.h View 1 2 1 chunk +40 lines, -0 lines 0 comments Download
A base/trace_event/heap_profiler_event_filter.cc View 1 2 1 chunk +67 lines, -0 lines 0 comments Download
M base/trace_event/memory_dump_manager.cc View 2 chunks +2 lines, -1 line 0 comments Download
M base/trace_event/trace_config.h View 1 2 3 3 chunks +4 lines, -1 line 0 comments Download
M base/trace_event/trace_config.cc View 1 2 1 chunk +14 lines, -0 lines 0 comments Download
M base/trace_event/trace_config_unittest.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
A base/trace_event/trace_event_filter.h View 1 1 chunk +51 lines, -0 lines 0 comments Download
A base/trace_event/trace_event_filter.cc View 1 chunk +17 lines, -0 lines 0 comments Download
A base/trace_event/trace_event_filter_test_utils.h View 1 1 chunk +53 lines, -0 lines 0 comments Download
A base/trace_event/trace_event_filter_test_utils.cc View 1 1 chunk +61 lines, -0 lines 0 comments Download
M base/trace_event/trace_event_unittest.cc View 1 9 chunks +18 lines, -52 lines 0 comments Download
M base/trace_event/trace_log.h View 1 3 chunks +10 lines, -18 lines 0 comments Download
M base/trace_event/trace_log.cc View 1 2 12 chunks +26 lines, -101 lines 0 comments Download
M base/trace_event/trace_log_constants.cc View 1 chunk +0 lines, -6 lines 0 comments Download
M tools/gn/bootstrap/bootstrap.py View 1 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 46 (30 generated)
Primiano Tucci (use gerrit)
I AM BACK! This is a "Tick"*: quite some diff lines but should be pretty ...
4 years ago (2016-12-06 14:02:31 UTC) #10
kraynov
https://codereview.chromium.org/2549103003/diff/20001/base/BUILD.gn File base/BUILD.gn (right): https://codereview.chromium.org/2549103003/diff/20001/base/BUILD.gn#newcode985 base/BUILD.gn:985: "trace_event/trace_event_filter_test_utils.h", Why you build that with non-test code too? ...
4 years ago (2016-12-06 18:24:23 UTC) #11
Primiano Tucci (use gerrit)
https://codereview.chromium.org/2549103003/diff/20001/base/BUILD.gn File base/BUILD.gn (right): https://codereview.chromium.org/2549103003/diff/20001/base/BUILD.gn#newcode985 base/BUILD.gn:985: "trace_event/trace_event_filter_test_utils.h", On 2016/12/06 18:24:23, kraynov wrote: > Why you ...
4 years ago (2016-12-07 11:17:47 UTC) #17
kraynov
lgtm thanks! https://codereview.chromium.org/2549103003/diff/20001/base/trace_event/trace_event_filter_test_utils.h File base/trace_event/trace_event_filter_test_utils.h (right): https://codereview.chromium.org/2549103003/diff/20001/base/trace_event/trace_event_filter_test_utils.h#newcode15 base/trace_event/trace_event_filter_test_utils.h:15: class BASE_EXPORT TestEventFilter : public TraceEventFilter { ...
4 years ago (2016-12-07 11:30:50 UTC) #19
oystein (OOO til 10th of July)
lgtm with a few nits/suggestions, and a couple of comments I wrote and then deleted ...
4 years ago (2016-12-08 20:40:20 UTC) #22
Primiano Tucci (use gerrit)
https://codereview.chromium.org/2549103003/diff/80001/base/trace_event/event_name_filter.h File base/trace_event/event_name_filter.h (right): https://codereview.chromium.org/2549103003/diff/80001/base/trace_event/event_name_filter.h#newcode24 base/trace_event/event_name_filter.h:24: // and use a bloom filter trie. However, today ...
4 years ago (2016-12-09 11:50:10 UTC) #24
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/2549103003/120001
4 years ago (2016-12-09 11:51:22 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/322461)
4 years ago (2016-12-09 11:58:39 UTC) #29
Primiano Tucci (use gerrit)
+thakis for changes to base/BUILD.gn
4 years ago (2016-12-09 14:17:21 UTC) #31
Nico
buld.gn lgtm (Even remembered to update gn's bootstrap script, nice :-) )
4 years ago (2016-12-09 14:23:13 UTC) #32
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/2549103003/120001
4 years ago (2016-12-09 14:36:57 UTC) #34
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/2549103003/140001
4 years ago (2016-12-09 16:17:57 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/276796)
4 years ago (2016-12-09 20:37:54 UTC) #39
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/2549103003/140001
4 years ago (2016-12-09 22:39:17 UTC) #41
commit-bot: I haz the power
Committed patchset #4 (id:140001)
4 years ago (2016-12-10 02:04:44 UTC) #44
commit-bot: I haz the power
4 years ago (2016-12-12 15:05:16 UTC) #46
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/a0835eec90a7fa97ea838e93540135115aa833a3
Cr-Commit-Position: refs/heads/master@{#437721}

Powered by Google App Engine
This is Rietveld 408576698