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

Unified Diff: chrome/browser/sessions/session_restore.cc

Issue 1004033006: Add "SessionRestore.ForegroundTabFirstPaint2" histogram. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | tools/metrics/histograms/histograms.xml » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sessions/session_restore.cc
diff --git a/chrome/browser/sessions/session_restore.cc b/chrome/browser/sessions/session_restore.cc
index 83b71f4e94be868960976a944364dbdb4f5f8c26..090d5f32898676d4d190f73bf96b625117d93a41 100644
--- a/chrome/browser/sessions/session_restore.cc
+++ b/chrome/browser/sessions/session_restore.cc
@@ -432,6 +432,23 @@ void TabLoader::Observe(int type,
100,
base::Histogram::kUmaTargetedHistogramFlag);
counter_for_count->AddTime(time_to_paint);
+ UMA_HISTOGRAM_CUSTOM_TIMES("SessionRestore.ForegroundTabFirstPaint2",
+ time_to_paint,
+ base::TimeDelta::FromMilliseconds(100),
+ base::TimeDelta::FromMinutes(16),
+ 50);
+ // Record a time for the number of tabs, to help track down
+ // contention.
+ time_for_count = base::StringPrintf(
+ "SessionRestore.ForegroundTabFirstPaint2_%d", tab_count_);
Alexei Svitkine (slow) 2015/03/16 19:32:11 Please update histogram_suffixes element SessionRe
danduong 2015/03/16 20:42:39 Done.
+ counter_for_count =
+ base::Histogram::FactoryTimeGet(
+ time_for_count,
+ base::TimeDelta::FromMilliseconds(100),
+ base::TimeDelta::FromMinutes(16),
+ 50,
+ base::Histogram::kUmaTargetedHistogramFlag);
+ counter_for_count->AddTime(time_to_paint);
} else if (render_widget_hosts_loading_.find(render_widget_host) ==
render_widget_hosts_loading_.end()) {
// If this is a host for a tab we're not loading some other tab
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | tools/metrics/histograms/histograms.xml » ('J')

Powered by Google App Engine
This is Rietveld 408576698