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

Unified Diff: cc/trees/layer_tree_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
Index: cc/trees/layer_tree_impl.cc
diff --git a/cc/trees/layer_tree_impl.cc b/cc/trees/layer_tree_impl.cc
index e41da4b42d2ff4c642daddb280da95b26ebfb46d..98171259c65ddca80d1e97a01a040ba0e85b4852 100644
--- a/cc/trees/layer_tree_impl.cc
+++ b/cc/trees/layer_tree_impl.cc
@@ -834,6 +834,9 @@ bool LayerTreeImpl::UpdateDrawProperties(bool update_lcd_text) {
"Compositing.%s.LayerTreeImpl.CalculateDrawPropertiesUs",
client_name),
timer.Elapsed().InMicroseconds());
+ UMA_HISTOGRAM_COUNTS_100(
+ base::StringPrintf("Compositing.%s.NumRenderSurfaces", client_name),
+ base::saturated_cast<int>(render_surface_layer_list_.size()));
}
}

Powered by Google App Engine
This is Rietveld 408576698