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

Unified Diff: chrome/browser/performance_monitor/process_metrics_history.cc

Issue 2694363007: Add memory and CPU histogram for OOPIF
Patch Set: Created 3 years, 10 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: chrome/browser/performance_monitor/process_metrics_history.cc
diff --git a/chrome/browser/performance_monitor/process_metrics_history.cc b/chrome/browser/performance_monitor/process_metrics_history.cc
index 591d3738a2cbcd8bc1abb30cf0ffe259ec6da324..bc44ed9c26c3983b6f214afcbb1e8b52ef030dd4 100644
--- a/chrome/browser/performance_monitor/process_metrics_history.cc
+++ b/chrome/browser/performance_monitor/process_metrics_history.cc
@@ -107,9 +107,17 @@ void ProcessMetricsHistory::RunPerformanceTriggers() {
UMA_HISTOGRAM_CUSTOM_COUNTS(
"PerformanceMonitor.AverageCPU.RendererProcess", cpu_usage_,
kHistogramMin, kHistogramMax, kHistogramBucketCount);
+ if (process_data_.contains_oopif) {
+ UMA_HISTOGRAM_CUSTOM_COUNTS("SiteIsolation.Oopif.AverageCPU",
+ cpu_usage_, kHistogramMin, kHistogramMax,
+ kHistogramBucketCount);
+ }
if (cpu_usage_ > kHighCPUUtilizationThreshold) {
UMA_HISTOGRAM_BOOLEAN("PerformanceMonitor.HighCPU.RendererProcess",
true);
+ if (process_data_.contains_oopif) {
+ UMA_HISTOGRAM_BOOLEAN("SiteIsolation.Oopif.HighCPU", true);
+ }
}
break;
case content::PROCESS_TYPE_GPU:

Powered by Google App Engine
This is Rietveld 408576698