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

Unified Diff: content/browser/tracing/background_tracing_config_impl.cc

Issue 2034553002: Set up background memory light tracing field trials (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@set_whitelist
Patch Set: Remove navigation_tracing change and add base_export. Created 4 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/tracing/background_tracing_config_impl.cc
diff --git a/content/browser/tracing/background_tracing_config_impl.cc b/content/browser/tracing/background_tracing_config_impl.cc
index 7220a769f82917cbee12704a2a414cca3959b592..e964cfad5e8a1cc2e4d6d60e16a0a3f0d962a9d6 100644
--- a/content/browser/tracing/background_tracing_config_impl.cc
+++ b/content/browser/tracing/background_tracing_config_impl.cc
@@ -32,6 +32,7 @@ const char kConfigCategoryBenchmarkIPC[] = "BENCHMARK_IPC";
const char kConfigCategoryBenchmarkStartup[] = "BENCHMARK_STARTUP";
const char kConfigCategoryBenchmarkBlinkGC[] = "BENCHMARK_BLINK_GC";
const char kConfigCategoryBenchmarkMemoryHeavy[] = "BENCHMARK_MEMORY_HEAVY";
+const char kConfigCategoryBenchmarkMemoryLight[] = "BENCHMARK_MEMORY_LIGHT";
const char kConfigCategoryBenchmarkExecutionMetric[] =
"BENCHMARK_EXECUTION_METRIC";
const char kConfigCategoryBlinkStyle[] = "BLINK_STYLE";
@@ -62,6 +63,8 @@ std::string BackgroundTracingConfigImpl::CategoryPresetToString(
return kConfigCategoryBenchmarkBlinkGC;
case BackgroundTracingConfigImpl::BENCHMARK_MEMORY_HEAVY:
return kConfigCategoryBenchmarkMemoryHeavy;
+ case BackgroundTracingConfigImpl::BENCHMARK_MEMORY_LIGHT:
+ return kConfigCategoryBenchmarkMemoryLight;
case BackgroundTracingConfigImpl::BENCHMARK_EXECUTION_METRIC:
return kConfigCategoryBenchmarkExecutionMetric;
case BackgroundTracingConfigImpl::BLINK_STYLE:
@@ -111,6 +114,11 @@ bool BackgroundTracingConfigImpl::StringToCategoryPreset(
return true;
}
+ if (category_preset_string == kConfigCategoryBenchmarkMemoryLight) {
+ *category_preset = BackgroundTracingConfigImpl::BENCHMARK_MEMORY_LIGHT;
+ return true;
+ }
+
if (category_preset_string == kConfigCategoryBenchmarkExecutionMetric) {
*category_preset = BackgroundTracingConfigImpl::BENCHMARK_EXECUTION_METRIC;
return true;

Powered by Google App Engine
This is Rietveld 408576698