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

Unified Diff: chromecast/base/metrics/cast_metrics_helper.cc

Issue 824733002: Support for defered media load to cast_content_render_client. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: New metrics. Created 6 years 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 | « chromecast/base/metrics/cast_metrics_helper.h ('k') | chromecast/chromecast.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/base/metrics/cast_metrics_helper.cc
diff --git a/chromecast/base/metrics/cast_metrics_helper.cc b/chromecast/base/metrics/cast_metrics_helper.cc
index 8ac2fe620e6bfde47fe8aa46738fcaecef779c44..35188bce844841c0343528542b920b4e04291ca3 100644
--- a/chromecast/base/metrics/cast_metrics_helper.cc
+++ b/chromecast/base/metrics/cast_metrics_helper.cc
@@ -151,6 +151,15 @@ void CastMetricsHelper::LogMediaPause() {
sdk_version_));
}
+void CastMetricsHelper::LogTimeToFirstPaint() {
+ MAKE_SURE_THREAD(LogTimeToFirstPaint);
+ base::TimeDelta launch_time = base::TimeTicks::Now() - app_start_time_;
+ const std::string uma_name(GetMetricsNameWithAppName("Startup",
+ "TimeToFirstPaint"));
+ LogMediumTimeHistogramEvent(uma_name, launch_time);
+ LOG(INFO) << uma_name << " is " << launch_time.InSecondsF() << " seconds.";
+}
+
void CastMetricsHelper::LogTimeToDisplayVideo() {
if (!new_startup_time_) { // For faster check.
return;
« no previous file with comments | « chromecast/base/metrics/cast_metrics_helper.h ('k') | chromecast/chromecast.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698