summaryrefslogtreecommitdiffstats
path: root/cc/frame_rate_controller.cc
diff options
context:
space:
mode:
authorreveman@chromium.org <reveman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-17 12:29:13 +0000
committerreveman@chromium.org <reveman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-17 12:29:13 +0000
commitc13cf71f757da556fd5949d50701db560f92c5ec (patch)
tree6cb04f6ec81dc5edc3d17b917d91235652ba8400 /cc/frame_rate_controller.cc
parentde206bb758daa9b4c79863e8b64a9c39d2758b35 (diff)
downloadchromium_src-c13cf71f757da556fd5949d50701db560f92c5ec.zip
chromium_src-c13cf71f757da556fd5949d50701db560f92c5ec.tar.gz
chromium_src-c13cf71f757da556fd5949d50701db560f92c5ec.tar.bz2
cc: Add ThrottledVSyncInterval counter.
This makes it much easier to notice dropped frames in traces. BUG= TEST=manual Review URL: https://chromiumcodereview.appspot.com/11414008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168412 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/frame_rate_controller.cc')
-rw-r--r--cc/frame_rate_controller.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/cc/frame_rate_controller.cc b/cc/frame_rate_controller.cc
index e8f82de..436e80d 100644
--- a/cc/frame_rate_controller.cc
+++ b/cc/frame_rate_controller.cc
@@ -111,6 +111,7 @@ void FrameRateController::onTimerTick()
// Check if we have too many frames in flight.
bool throttled = m_numFramesPending >= m_maxFramesPending;
+ TRACE_COUNTER_ID1("cc", "ThrottledVSyncInterval", m_thread, throttled);
if (m_client)
m_client->vsyncTick(throttled);