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

Side by Side Diff: content/common/browser_rendering_stats.cc

Issue 17757002: Add UMA/Telemetry stats for touch event latency (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/common/browser_rendering_stats.h" 5 #include "content/common/browser_rendering_stats.h"
6 6
7 namespace content { 7 namespace content {
8 8
9 BrowserRenderingStats::BrowserRenderingStats() : input_event_count(0) {} 9 BrowserRenderingStats::BrowserRenderingStats() :
10 input_event_count(0),
11 touch_system_count(0),
12 touch_ui_count(0),
13 touch_acked_consumed_count(0),
14 touch_acked_not_consumed_count(0),
15 touch_acked_no_consumer_count(0) {
16 }
10 17
11 BrowserRenderingStats::~BrowserRenderingStats() {} 18 BrowserRenderingStats::~BrowserRenderingStats() {}
12 19
13 void BrowserRenderingStats::EnumerateFields( 20 void BrowserRenderingStats::EnumerateFields(
14 cc::RenderingStats::Enumerator* enumerator) const { 21 cc::RenderingStats::Enumerator* enumerator) const {
15 enumerator->AddInt("inputEventCount", input_event_count); 22 enumerator->AddInt("inputEventCount", input_event_count);
16 enumerator->AddTimeDeltaInSecondsF("totalInputLatency", total_input_latency); 23 enumerator->AddTimeDeltaInSecondsF("totalInputLatency", total_input_latency);
24
25 enumerator->AddInt("touchSystemCount", touch_system_count);
26 enumerator->AddTimeDeltaInSecondsF("totalTouchSystemLatency",
27 total_touch_system_latency);
28 enumerator->AddInt("touchUICount", touch_ui_count);
29 enumerator->AddTimeDeltaInSecondsF("totalTouchUILatency",
30 total_touch_ui_latency);
31 enumerator->AddInt("touchAckedConsumedCount", touch_acked_consumed_count);
32 enumerator->AddTimeDeltaInSecondsF("totalTouchAckedConsumedLatency",
33 total_touch_acked_consumed_latency);
34 enumerator->AddInt("touchAckedNotConsumedCount",
35 touch_acked_not_consumed_count);
36 enumerator->AddTimeDeltaInSecondsF("totalTouchAckedNotConsumedLatency",
37 total_touch_acked_not_consumed_latency);
38 enumerator->AddInt("touchAckedNoConsumerCount",
39 touch_acked_no_consumer_count);
40 enumerator->AddTimeDeltaInSecondsF("totalTouchAckedNoConsumerLatency",
41 total_touch_acked_no_consumer_latency);
17 } 42 }
18 43
19 } // namespace content 44 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698