summaryrefslogtreecommitdiffstats
path: root/cc/debug/frame_rate_counter.cc
diff options
context:
space:
mode:
authorjbauman@chromium.org <jbauman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-24 14:59:27 +0000
committerjbauman@chromium.org <jbauman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-24 14:59:27 +0000
commit213fcfcf37c64ea18ebe2adc82a05c469a479d39 (patch)
treed0fe60ecb8fb597cedba3a8c6c7ae0d160df6ed5 /cc/debug/frame_rate_counter.cc
parenta096e89e7ff6fbc80294e2ee831c8a1ff1c0a7e5 (diff)
downloadchromium_src-213fcfcf37c64ea18ebe2adc82a05c469a479d39.zip
chromium_src-213fcfcf37c64ea18ebe2adc82a05c469a479d39.tar.gz
chromium_src-213fcfcf37c64ea18ebe2adc82a05c469a479d39.tar.bz2
Add UMA histogram for compositor frame delay with software compositor.
Software and hardware behave differently and should be split out separately. BUG=277935 Review URL: https://chromiumcodereview.appspot.com/23295031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@219445 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/debug/frame_rate_counter.cc')
-rw-r--r--cc/debug/frame_rate_counter.cc21
1 files changed, 15 insertions, 6 deletions
diff --git a/cc/debug/frame_rate_counter.cc b/cc/debug/frame_rate_counter.cc
index 8a829ff..11632b1 100644
--- a/cc/debug/frame_rate_counter.cc
+++ b/cc/debug/frame_rate_counter.cc
@@ -44,7 +44,7 @@ base::TimeDelta FrameRateCounter::RecentFrameInterval(size_t n) const {
FrameRateCounter::FrameRateCounter(bool has_impl_thread)
: has_impl_thread_(has_impl_thread), dropped_frame_count_(0) {}
-void FrameRateCounter::SaveTimeStamp(base::TimeTicks timestamp) {
+void FrameRateCounter::SaveTimeStamp(base::TimeTicks timestamp, bool software) {
ring_buffer_.SaveToBuffer(timestamp);
// Check if frame interval can be computed.
@@ -55,11 +55,20 @@ void FrameRateCounter::SaveTimeStamp(base::TimeTicks timestamp) {
RecentFrameInterval(ring_buffer_.BufferSize() - 1);
if (has_impl_thread_ && ring_buffer_.CurrentIndex() > 0) {
- UMA_HISTOGRAM_CUSTOM_COUNTS("Renderer4.CompositorThreadImplDrawDelay",
- frame_interval_seconds.InMilliseconds(),
- 1,
- 120,
- 60);
+ if (software) {
+ UMA_HISTOGRAM_CUSTOM_COUNTS(
+ "Renderer4.SoftwareCompositorThreadImplDrawDelay",
+ frame_interval_seconds.InMilliseconds(),
+ 1,
+ 120,
+ 60);
+ } else {
+ UMA_HISTOGRAM_CUSTOM_COUNTS("Renderer4.CompositorThreadImplDrawDelay",
+ frame_interval_seconds.InMilliseconds(),
+ 1,
+ 120,
+ 60);
+ }
}
if (!IsBadFrameInterval(frame_interval_seconds) &&