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

Unified Diff: ui/app_list/views/app_list_view.cc

Issue 580993003: Add UMA for app list creation time. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_app_list_slow_text
Patch Set: rebase Created 6 years, 3 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 | « tools/metrics/histograms/histograms.xml ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/views/app_list_view.cc
diff --git a/ui/app_list/views/app_list_view.cc b/ui/app_list/views/app_list_view.cc
index c3b398f1e3a35dbcf45f1bcae65d6d7a6c52fff9..4d7df429019d6108dd2b1772e6a3a7135557c3ec 100644
--- a/ui/app_list/views/app_list_view.cc
+++ b/ui/app_list/views/app_list_view.cc
@@ -7,6 +7,7 @@
#include <algorithm>
#include "base/command_line.h"
+#include "base/metrics/histogram.h"
#include "base/strings/string_util.h"
#include "base/win/windows_version.h"
#include "ui/app_list/app_list_constants.h"
@@ -319,6 +320,8 @@ void AppListView::InitAsBubbleInternal(gfx::NativeView parent,
views::BubbleBorder::Arrow arrow,
bool border_accepts_events,
const gfx::Vector2d& anchor_offset) {
+ base::Time start_time = base::Time::Now();
+
app_list_main_view_ =
new AppListMainView(delegate_, initial_apps_page, parent);
AddChildView(app_list_main_view_);
@@ -407,6 +410,9 @@ void AppListView::InitAsBubbleInternal(gfx::NativeView parent,
if (delegate_)
delegate_->ViewInitialized();
+
+ UMA_HISTOGRAM_TIMES("Apps.AppListCreationTime",
+ base::Time::Now() - start_time);
}
void AppListView::OnBeforeBubbleWidgetInit(
« no previous file with comments | « tools/metrics/histograms/histograms.xml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698