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

Unified Diff: content/common/browser_rendering_stats.h

Issue 14931012: Add support for latency measurement to Telemetry smoothness benchmarks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 | « content/browser/renderer_host/render_widget_host_impl.cc ('k') | content/common/browser_rendering_stats.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/browser_rendering_stats.h
diff --git a/content/common/browser_rendering_stats.h b/content/common/browser_rendering_stats.h
new file mode 100644
index 0000000000000000000000000000000000000000..c911400509ec320ecdb50693fd86263ec7119a42
--- /dev/null
+++ b/content/common/browser_rendering_stats.h
@@ -0,0 +1,30 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_COMMON_BROWSER_RENDERING_STATS_H_
+#define CONTENT_COMMON_BROWSER_RENDERING_STATS_H_
+
+#include "base/time.h"
+#include "cc/debug/rendering_stats.h"
+#include "content/common/content_export.h"
+
+namespace content {
+
+struct CONTENT_EXPORT BrowserRenderingStats {
+ BrowserRenderingStats();
+ ~BrowserRenderingStats();
+
+ uint32 input_event_count;
+ base::TimeDelta total_input_latency;
+
+ // Note: when adding new members, please remember to update enumerateFields
+ // in browser_rendering_stats.cc.
+
+ // Outputs the fields in this structure to the provided enumerator.
+ void EnumerateFields(cc::RenderingStats::Enumerator* enumerator) const;
+};
+
+} // namespace content
+
+#endif // CONTENT_COMMON_BROWSER_RENDERING_STATS_H_
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.cc ('k') | content/common/browser_rendering_stats.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698