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

Unified Diff: content/common/cc_messages.cc

Issue 11419296: cc: Add historgram for the number of render passes in an ubercomp delegated frame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/cc_messages.cc
diff --git a/content/common/cc_messages.cc b/content/common/cc_messages.cc
index bcdf0f0f2252c1a4f93e2ce347cbba3645980435..845b4c9dc483593c9211f07cff169f16df307817 100644
--- a/content/common/cc_messages.cc
+++ b/content/common/cc_messages.cc
@@ -4,6 +4,7 @@
#include "content/common/cc_messages.h"
+#include "base/metrics/histogram.h"
#include "cc/compositor_frame.h"
#include "content/public/common/common_param_traits.h"
#include "third_party/WebKit/Source/Platform/chromium/public/WebData.h"
@@ -596,6 +597,7 @@ void ParamTraits<cc::Mailbox>::Log(const param_type& p, std::string* l) {
}
void ParamTraits<cc::CompositorFrame>::Write(Message* m, const param_type& p) {
+ HISTOGRAM_COUNTS("Renderer4.renderPassCount", frame.renderPasses.size());
piman 2012/12/03 20:30:22 I was thinking of adding this in the GLRenderer (o
danakj 2012/12/03 20:31:41 Oh, I thought that too, then I realized we get mor
WriteParam(m, p.size);
WriteParam(m, p.resource_list);
WriteParam(m, p.render_pass_list.size());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698