| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |