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

Side by Side Diff: src/libplatform/tracing/trace-config.cc

Issue 2462143002: [Tracing] Remove unused excluded categories list. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/d8.cc ('k') | test/cctest/libplatform/test-tracing.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <string.h> 5 #include <string.h>
6 6
7 #include "include/libplatform/v8-tracing.h" 7 #include "include/libplatform/v8-tracing.h"
8 #include "src/base/logging.h" 8 #include "src/base/logging.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 14 matching lines...) Expand all
25 if (strcmp(included_category.data(), category_group) == 0) return true; 25 if (strcmp(included_category.data(), category_group) == 0) return true;
26 } 26 }
27 return false; 27 return false;
28 } 28 }
29 29
30 void TraceConfig::AddIncludedCategory(const char* included_category) { 30 void TraceConfig::AddIncludedCategory(const char* included_category) {
31 DCHECK(included_category != NULL && strlen(included_category) > 0); 31 DCHECK(included_category != NULL && strlen(included_category) > 0);
32 included_categories_.push_back(included_category); 32 included_categories_.push_back(included_category);
33 } 33 }
34 34
35 void TraceConfig::AddExcludedCategory(const char* excluded_category) {
36 DCHECK(excluded_category != NULL && strlen(excluded_category) > 0);
37 excluded_categories_.push_back(excluded_category);
38 }
39
40 } // namespace tracing 35 } // namespace tracing
41 } // namespace platform 36 } // namespace platform
42 } // namespace v8 37 } // namespace v8
OLDNEW
« no previous file with comments | « src/d8.cc ('k') | test/cctest/libplatform/test-tracing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698