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; |