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

Unified Diff: ash/wm/overview/window_selector.cc

Issue 24096024: Add UMA metrics for window selection and overview. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Improve the wording of histogram descriptions and fix selection uma count. Created 7 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 | « ash/wm/overview/window_overview.cc ('k') | ash/wm/overview/window_selector_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/overview/window_selector.cc
diff --git a/ash/wm/overview/window_selector.cc b/ash/wm/overview/window_selector.cc
index 6989749921b70127e1be978b6855082f11b0d68f..8d6a2c3927c82f8fe30c9460468242ba8f666928 100644
--- a/ash/wm/overview/window_selector.cc
+++ b/ash/wm/overview/window_selector.cc
@@ -14,6 +14,7 @@
#include "ash/wm/overview/window_selector_window.h"
#include "ash/wm/window_settings.h"
#include "base/auto_reset.h"
+#include "base/metrics/histogram.h"
#include "base/timer/timer.h"
#include "ui/aura/client/activation_client.h"
#include "ui/aura/client/focus_client.h"
@@ -132,6 +133,7 @@ WindowSelector::WindowSelector(const WindowList& windows,
}
}
RemoveFocusAndSetRestoreWindow();
+ UMA_HISTOGRAM_COUNTS_100("Ash.WindowSelector.Items", windows_.size());
// Observe window activations and switchable containers on all root windows
// for newly created windows during overview.
« no previous file with comments | « ash/wm/overview/window_overview.cc ('k') | ash/wm/overview/window_selector_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698