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

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

Issue 1981823003: Add deep report for BENCHMARK_MEMORY (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: limit to 5sec Created 4 years, 7 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 a370618c2f7118ea8fdf06b6b297e87d1ba2340e..a60020d724d19572b025daf3aa214cffc87612ea 100644
--- a/content/browser/tracing/background_tracing_config_impl.cc
+++ b/content/browser/tracing/background_tracing_config_impl.cc
@@ -31,6 +31,7 @@ const char kConfigCategoryBenchmarkGPU[] = "BENCHMARK_GPU";
const char kConfigCategoryBenchmarkIPC[] = "BENCHMARK_IPC";
const char kConfigCategoryBenchmarkStartup[] = "BENCHMARK_STARTUP";
const char kConfigCategoryBenchmarkBlinkGC[] = "BENCHMARK_BLINK_GC";
+const char kConfigCategoryBenchmarkMemory[] = "BENCHMARK_MEMORY_HEAVY";
ssid 2016/05/27 01:08:10 kConfigCategoryBenchmarkMemoryHeavy
keishi 2016/05/27 04:29:07 Done.
const char kConfigCategoryBenchmarkExecutionMetric[] =
"BENCHMARK_EXECUTION_METRIC";
const char kConfigCategoryBlinkStyle[] = "BLINK_STYLE";
@@ -59,6 +60,8 @@ std::string BackgroundTracingConfigImpl::CategoryPresetToString(
return kConfigCategoryBenchmarkStartup;
case BackgroundTracingConfigImpl::BENCHMARK_BLINK_GC:
return kConfigCategoryBenchmarkBlinkGC;
+ case BackgroundTracingConfigImpl::BENCHMARK_MEMORY_HEAVY:
+ return kConfigCategoryBenchmarkMemory;
case BackgroundTracingConfigImpl::BENCHMARK_EXECUTION_METRIC:
return kConfigCategoryBenchmarkExecutionMetric;
case BackgroundTracingConfigImpl::BLINK_STYLE:
@@ -103,6 +106,11 @@ bool BackgroundTracingConfigImpl::StringToCategoryPreset(
return true;
}
+ if (category_preset_string == kConfigCategoryBenchmarkMemory) {
+ *category_preset = BackgroundTracingConfigImpl::BENCHMARK_MEMORY_HEAVY;
+ return true;
+ }
+
if (category_preset_string == kConfigCategoryBenchmarkExecutionMetric) {
*category_preset = BackgroundTracingConfigImpl::BENCHMARK_EXECUTION_METRIC;
return true;

Powered by Google App Engine
This is Rietveld 408576698