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

Side by Side Diff: content/browser/tracing/background_tracing_manager_impl.cc

Issue 1213643002: Changed Bulk Report categories to include toplevel and exclude flow categories (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 months 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium 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 "content/browser/tracing/background_tracing_manager_impl.h" 5 #include "content/browser/tracing/background_tracing_manager_impl.h"
6 6
7 #include "base/json/json_writer.h" 7 #include "base/json/json_writer.h"
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/metrics/histogram_macros.h" 9 #include "base/metrics/histogram_macros.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 config_.reset(); 458 config_.reset();
459 459
460 content::TracingController::GetInstance()->DisableRecording(nullptr); 460 content::TracingController::GetInstance()->DisableRecording(nullptr);
461 } 461 }
462 462
463 std::string 463 std::string
464 BackgroundTracingManagerImpl::GetCategoryFilterStringForCategoryPreset( 464 BackgroundTracingManagerImpl::GetCategoryFilterStringForCategoryPreset(
465 BackgroundTracingConfig::CategoryPreset preset) const { 465 BackgroundTracingConfig::CategoryPreset preset) const {
466 switch (preset) { 466 switch (preset) {
467 case BackgroundTracingConfig::CategoryPreset::BENCHMARK: 467 case BackgroundTracingConfig::CategoryPreset::BENCHMARK:
468 return "benchmark," 468 return "benchmark,toplevel";
469 "disabled-by-default-toplevel.flow,"
470 "disabled-by-default-ipc.flow";
471 case BackgroundTracingConfig::CategoryPreset::BENCHMARK_DEEP: 469 case BackgroundTracingConfig::CategoryPreset::BENCHMARK_DEEP:
472 return "*,disabled-by-default-benchmark.detailed"; 470 return "*,disabled-by-default-benchmark.detailed";
473 } 471 }
474 NOTREACHED(); 472 NOTREACHED();
475 return ""; 473 return "";
476 } 474 }
477 475
478 } // namspace content 476 } // namspace content
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698