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

Issue 2499583003: [OBSOLETE] tracing: split trace event filter logic out of TraceLog (Closed)

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

Description

[OBSOLETE] tracing: split trace event filter logic out of TraceLog Another refactoring aimed at slimming down the TraceLog monster-class and simplifying dependencies of the tracing codebase. This CL moves all the trace filters registry logic outside of the TraceLog. On top of the mechanical refactoring, the major change being introduced is event filters being now indefinitely lived. This reduces the complexity of the interaction between TraceLog and the filters, making them similar to the pattern used by TraceCategory. There doesn't seem to be any actual need to unregister filters and hence there is no need to keep worrying about their lifetime. BUG=659689

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Total comments: 9
Unified diffs Side-by-side diffs Delta from patch set Stats (+557 lines, -170 lines) Patch
M base/BUILD.gn View 3 chunks +8 lines, -0 lines 0 comments Download
M base/trace_event/category_registry.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
A base/trace_event/event_filter_registry.h View 1 2 1 chunk +59 lines, -0 lines 4 comments Download
A base/trace_event/event_filter_registry.cc View 1 2 1 chunk +70 lines, -0 lines 0 comments Download
A base/trace_event/event_filter_registry_unittest.cc View 1 2 1 chunk +63 lines, -0 lines 0 comments Download
A base/trace_event/event_name_filter.h View 1 2 1 chunk +45 lines, -0 lines 1 comment Download
A base/trace_event/event_name_filter.cc View 1 2 1 chunk +35 lines, -0 lines 1 comment Download
A base/trace_event/event_name_filter_unittest.cc View 1 2 1 chunk +48 lines, -0 lines 0 comments Download
A base/trace_event/heap_profiler_event_filter.h View 1 chunk +41 lines, -0 lines 0 comments Download
A base/trace_event/heap_profiler_event_filter.cc View 1 chunk +64 lines, -0 lines 0 comments Download
M base/trace_event/memory_dump_manager.cc View 2 chunks +2 lines, -1 line 0 comments Download
A base/trace_event/trace_event_filter.h View 1 2 1 chunk +55 lines, -0 lines 3 comments Download
M base/trace_event/trace_event_unittest.cc View 1 2 7 chunks +18 lines, -10 lines 0 comments Download
M base/trace_event/trace_log.h View 1 chunk +0 lines, -18 lines 0 comments Download
M base/trace_event/trace_log.cc View 1 2 9 chunks +43 lines, -132 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 chunk +3 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 27 (21 generated)
Primiano Tucci (use gerrit)
Simplifying the hell out of TraceLog. Take 2.
4 years, 1 month ago (2016-11-11 19:38:34 UTC) #4
Dirk Pranke
bootstrap.py change lgtm :).
4 years, 1 month ago (2016-11-11 20:10:14 UTC) #6
ssid
https://codereview.chromium.org/2499583003/diff/60001/base/trace_event/event_filter_registry.h File base/trace_event/event_filter_registry.h (right): https://codereview.chromium.org/2499583003/diff/60001/base/trace_event/event_filter_registry.h#newcode21 base/trace_event/event_filter_registry.h:21: // registered are leaked forever. This guarnatees that the ...
4 years, 1 month ago (2016-11-16 10:19:44 UTC) #22
Primiano Tucci (use gerrit)
Hm hold on on revieweing this, I just realized that I need to revisit it ...
4 years, 1 month ago (2016-11-16 16:56:22 UTC) #23
DmitrySkiba
https://codereview.chromium.org/2499583003/diff/60001/base/trace_event/event_name_filter.h File base/trace_event/event_name_filter.h (right): https://codereview.chromium.org/2499583003/diff/60001/base/trace_event/event_name_filter.h#newcode37 base/trace_event/event_name_filter.h:37: std::unique_ptr<EventNamesWhitelist> event_names_whitelist_; Why unique_ptr indirection? What's wrong with just ...
4 years ago (2016-11-29 17:55:46 UTC) #25
Primiano Tucci (use gerrit)
4 years ago (2016-12-06 12:27:01 UTC) #26
Abandoning this CL in favor of a slighly differnt and more gradual approach.
Apologies for the double review.

First some refactoring-only coming in 
https://codereview.chromium.org/2549103003/
And then real change in https://codereview.chromium.org/2557743002

Powered by Google App Engine
This is Rietveld 408576698