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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 1906523002: cc: Add UMA histogram for the number of render surfaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | cc/trees/layer_tree_impl.cc » ('j') | tools/metrics/histograms/histograms.xml » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_impl.cc
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index 5bfb96ab4261a7a34b372078d5e78b583056821b..1fd1015c853dfaecdae817f175673c169aa13f27 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -1054,10 +1054,6 @@ DrawResult LayerTreeHostImpl::PrepareToDraw(FrameData* frame) {
if (input_handler_client_)
input_handler_client_->ReconcileElasticOverscrollAndRootScroll();
- UMA_HISTOGRAM_CUSTOM_COUNTS(
- "Compositing.NumActiveLayers",
- base::saturated_cast<int>(active_tree_->NumLayers()), 1, 400, 20);
-
if (const char* client_name = GetClientNameForMetrics()) {
size_t total_picture_memory = 0;
for (const PictureLayerImpl* layer : active_tree()->picture_layers())
@@ -1070,6 +1066,9 @@ DrawResult LayerTreeHostImpl::PrepareToDraw(FrameData* frame) {
client_name),
base::saturated_cast<int>(total_picture_memory / 1024));
}
+ UMA_HISTOGRAM_CUSTOM_COUNTS(
Alexei Svitkine (slow) 2016/04/20 15:40:30 Please add the same comment above this block as th
ajuma 2016/04/20 15:52:10 Done.
+ base::StringPrintf("Compositing.%s.NumActiveLayers", client_name),
+ base::saturated_cast<int>(active_tree_->NumLayers()), 1, 400, 20);
}
bool update_lcd_text = false;
« no previous file with comments | « no previous file | cc/trees/layer_tree_impl.cc » ('j') | tools/metrics/histograms/histograms.xml » ('J')

Powered by Google App Engine
This is Rietveld 408576698