diff options
author | reveman@chromium.org <reveman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-17 12:29:13 +0000 |
---|---|---|
committer | reveman@chromium.org <reveman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-17 12:29:13 +0000 |
commit | c13cf71f757da556fd5949d50701db560f92c5ec (patch) | |
tree | 6cb04f6ec81dc5edc3d17b917d91235652ba8400 /cc | |
parent | de206bb758daa9b4c79863e8b64a9c39d2758b35 (diff) | |
download | chromium_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')
-rw-r--r-- | cc/frame_rate_controller.cc | 1 | ||||
-rw-r--r-- | cc/texture_uploader.cc | 2 |
2 files changed, 2 insertions, 1 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); diff --git a/cc/texture_uploader.cc b/cc/texture_uploader.cc index c3371b0..f988d69 100644 --- a/cc/texture_uploader.cc +++ b/cc/texture_uploader.cc @@ -135,7 +135,7 @@ double TextureUploader::estimatedTexturesPerSecond() // Use the median as our estimate. std::multiset<double>::iterator median = m_texturesPerSecondHistory.begin(); std::advance(median, m_texturesPerSecondHistory.size() / 2); - TRACE_COUNTER1("cc", "estimatedTexturesPerSecond", *median); + TRACE_COUNTER_ID1("cc", "EstimatedTexturesPerSecond", m_context, *median); return *median; } |