diff options
author | isherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-22 14:59:15 +0000 |
---|---|---|
committer | isherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-22 14:59:15 +0000 |
commit | 7e41a6952c4117e8ce45f679a576cb135a4fa46d (patch) | |
tree | c6a092efe5661d066c9bf6eb1cdb3a1711481d92 /cc/frame_rate_counter.cc | |
parent | ff3f8adf4681138c6a7ffa66b73f3c57bd59278e (diff) | |
download | chromium_src-7e41a6952c4117e8ce45f679a576cb135a4fa46d.zip chromium_src-7e41a6952c4117e8ce45f679a576cb135a4fa46d.tar.gz chromium_src-7e41a6952c4117e8ce45f679a576cb135a4fa46d.tar.bz2 |
Use proper histogram macros for Renderer4 histograms.
BUG=164518
Review URL: https://chromiumcodereview.appspot.com/12041015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178008 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/frame_rate_counter.cc')
-rw-r--r-- | cc/frame_rate_counter.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cc/frame_rate_counter.cc b/cc/frame_rate_counter.cc index a835d42..3628d78 100644 --- a/cc/frame_rate_counter.cc +++ b/cc/frame_rate_counter.cc @@ -42,8 +42,11 @@ void FrameRateCounter::saveTimeStamp(base::TimeTicks timestamp) base::TimeDelta frameIntervalSeconds = recentFrameInterval(m_ringBuffer.BufferSize() - 1); - if (m_hasImplThread && m_ringBuffer.CurrentIndex() > 0) - HISTOGRAM_CUSTOM_COUNTS("Renderer4.CompositorThreadImplDrawDelay", frameIntervalSeconds.InMilliseconds(), 1, 120, 60); + if (m_hasImplThread && m_ringBuffer.CurrentIndex() > 0) { + UMA_HISTOGRAM_CUSTOM_COUNTS("Renderer4.CompositorThreadImplDrawDelay", + frameIntervalSeconds.InMilliseconds(), + 1, 120, 60); + } if (!isBadFrameInterval(frameIntervalSeconds) && frameIntervalSeconds.InSecondsF() > kDroppedFrameTime) |