From c13cf71f757da556fd5949d50701db560f92c5ec Mon Sep 17 00:00:00 2001 From: "reveman@chromium.org" Date: Sat, 17 Nov 2012 12:29:13 +0000 Subject: 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 --- cc/frame_rate_controller.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'cc/frame_rate_controller.cc') 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); -- cgit v1.1