Commit f330e8a8 authored by oysteine's avatar oysteine Committed by Commit bot

Background tracing: Added preset category for blink_style

R=simonhatch
BUG=546193

Review URL: https://codereview.chromium.org/1423133007

Cr-Commit-Position: refs/heads/master@{#357113}
parent 92ca9fb1
...@@ -27,6 +27,7 @@ const char kConfigCategoryBenchmarkDeep[] = "BENCHMARK_DEEP"; ...@@ -27,6 +27,7 @@ const char kConfigCategoryBenchmarkDeep[] = "BENCHMARK_DEEP";
const char kConfigCategoryBenchmarkGPU[] = "BENCHMARK_GPU"; const char kConfigCategoryBenchmarkGPU[] = "BENCHMARK_GPU";
const char kConfigCategoryBenchmarkIPC[] = "BENCHMARK_IPC"; const char kConfigCategoryBenchmarkIPC[] = "BENCHMARK_IPC";
const char kConfigCategoryBenchmarkStartup[] = "BENCHMARK_STARTUP"; const char kConfigCategoryBenchmarkStartup[] = "BENCHMARK_STARTUP";
const char kConfigCategoryBlinkStyle[] = "BLINK_STYLE";
} // namespace } // namespace
...@@ -50,6 +51,8 @@ std::string BackgroundTracingConfigImpl::CategoryPresetToString( ...@@ -50,6 +51,8 @@ std::string BackgroundTracingConfigImpl::CategoryPresetToString(
return kConfigCategoryBenchmarkIPC; return kConfigCategoryBenchmarkIPC;
case BackgroundTracingConfigImpl::BENCHMARK_STARTUP: case BackgroundTracingConfigImpl::BENCHMARK_STARTUP:
return kConfigCategoryBenchmarkStartup; return kConfigCategoryBenchmarkStartup;
case BackgroundTracingConfigImpl::BLINK_STYLE:
return kConfigCategoryBlinkStyle;
} }
NOTREACHED(); NOTREACHED();
return ""; return "";
...@@ -83,6 +86,11 @@ bool BackgroundTracingConfigImpl::StringToCategoryPreset( ...@@ -83,6 +86,11 @@ bool BackgroundTracingConfigImpl::StringToCategoryPreset(
return true; return true;
} }
if (category_preset_string == kConfigCategoryBlinkStyle) {
*category_preset = BackgroundTracingConfigImpl::BLINK_STYLE;
return true;
}
return false; return false;
} }
......
...@@ -29,6 +29,7 @@ class CONTENT_EXPORT BackgroundTracingConfigImpl ...@@ -29,6 +29,7 @@ class CONTENT_EXPORT BackgroundTracingConfigImpl
BENCHMARK_GPU, BENCHMARK_GPU,
BENCHMARK_IPC, BENCHMARK_IPC,
BENCHMARK_STARTUP, BENCHMARK_STARTUP,
BLINK_STYLE
}; };
CategoryPreset category_preset() const { return category_preset_; } CategoryPreset category_preset() const { return category_preset_; }
......
...@@ -583,6 +583,8 @@ BackgroundTracingManagerImpl::GetCategoryFilterStringForCategoryPreset( ...@@ -583,6 +583,8 @@ BackgroundTracingManagerImpl::GetCategoryFilterStringForCategoryPreset(
return "benchmark,toplevel,startup,disabled-by-default-file," return "benchmark,toplevel,startup,disabled-by-default-file,"
"disabled-by-default-toplevel.flow," "disabled-by-default-toplevel.flow,"
"disabled-by-default-ipc.flow"; "disabled-by-default-ipc.flow";
case BackgroundTracingConfigImpl::CategoryPreset::BLINK_STYLE:
return "blink_style";
} }
NOTREACHED(); NOTREACHED();
return ""; return "";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment