[Startup Tracing] Separate TraceOptions and CategoryFilter
commitdaaba16762de04f5fdf16b510409e1eabb122e6e
authorzhenw <zhenw@chromium.org>
Tue, 26 May 2015 17:25:52 +0000 (26 10:25 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 26 May 2015 17:26:59 +0000 (26 17:26 +0000)
tree3d4906712a7fe554bf4ce7ccdcb42602fa5666c2
parent90fb634325910351f104f3a64d660b854ee57793
[Startup Tracing] Separate TraceOptions and CategoryFilter

This CL moves CategoryFilter and TraceOptions to their own files. This is the first step to replace CategoryFilter and TraceOptions by a unified TraceConfig class. There are three steps.

1- Move current CategoryFilter and TraceOptions to new file.
2- Create TraceConfig but don't use it anywhere
3- Hookup TraceConfig and remove CategoryFilter and TraceOptions.

Background:
Implementing TraceConfig is the first stage for startup tracing.

Startup tracing design doc:
https://docs.google.com/document/d/1yRCXhrQ-0rsfUgNHt9T4YdnmJYrXKN6aK56Ozk3kPVc/edit?usp=sharing

TraceConfig class design doc:
https://docs.google.com/document/d/1zwc6FdeYyrC7m9fC4jJqbkqpB0il9NV-MWH7lEnL0cc/edit?usp=sharing

trace-config file format doc:
https://docs.google.com/document/d/1auY0Buk-R2tGCzpHJzFgyTfngXTAK0mlxJc6J4M_CK4/edit?usp=sharing

BUG=317481, 482098

Review URL: https://codereview.chromium.org/1154133003

Cr-Commit-Position: refs/heads/master@{#331386}
base/trace_event/BUILD.gn
base/trace_event/category_filter.cc [new file with mode: 0644]
base/trace_event/category_filter.h [new file with mode: 0644]
base/trace_event/category_filter_unittest.cc [new file with mode: 0644]
base/trace_event/trace_event.gypi
base/trace_event/trace_event_impl.cc
base/trace_event/trace_event_impl.h
base/trace_event/trace_event_unittest.cc
base/trace_event/trace_options.cc [new file with mode: 0644]
base/trace_event/trace_options.h [new file with mode: 0644]
base/trace_event/trace_options_unittest.cc [new file with mode: 0644]