Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Side by Side Diff: cc/debug/rendering_stats_instrumentation.cc

Issue 1010323002: Adding a metric to track only the checkerboarding. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Forgot to remove a change from a telemetry file. Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/debug/rendering_stats_instrumentation.h ('k') | cc/layers/append_quads_data.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/debug/rendering_stats_instrumentation.h" 5 #include "cc/debug/rendering_stats_instrumentation.h"
6 6
7 namespace cc { 7 namespace cc {
8 8
9 // static 9 // static
10 scoped_ptr<RenderingStatsInstrumentation> 10 scoped_ptr<RenderingStatsInstrumentation>
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 74
75 void RenderingStatsInstrumentation::AddApproximatedVisibleContentArea( 75 void RenderingStatsInstrumentation::AddApproximatedVisibleContentArea(
76 int64 area) { 76 int64 area) {
77 if (!record_rendering_stats_) 77 if (!record_rendering_stats_)
78 return; 78 return;
79 79
80 base::AutoLock scoped_lock(lock_); 80 base::AutoLock scoped_lock(lock_);
81 impl_thread_rendering_stats_.approximated_visible_content_area += area; 81 impl_thread_rendering_stats_.approximated_visible_content_area += area;
82 } 82 }
83 83
84 void RenderingStatsInstrumentation::AddCheckerboardedVisibleContentArea(
85 int64 area) {
86 if (!record_rendering_stats_)
87 return;
88
89 base::AutoLock scoped_lock(lock_);
90 impl_thread_rendering_stats_.checkerboarded_visible_content_area += area;
91 }
92
84 void RenderingStatsInstrumentation::AddDrawDuration( 93 void RenderingStatsInstrumentation::AddDrawDuration(
85 base::TimeDelta draw_duration, 94 base::TimeDelta draw_duration,
86 base::TimeDelta draw_duration_estimate) { 95 base::TimeDelta draw_duration_estimate) {
87 if (!record_rendering_stats_) 96 if (!record_rendering_stats_)
88 return; 97 return;
89 98
90 base::AutoLock scoped_lock(lock_); 99 base::AutoLock scoped_lock(lock_);
91 impl_thread_rendering_stats_.draw_duration.Append(draw_duration); 100 impl_thread_rendering_stats_.draw_duration.Append(draw_duration);
92 impl_thread_rendering_stats_.draw_duration_estimate.Append( 101 impl_thread_rendering_stats_.draw_duration_estimate.Append(
93 draw_duration_estimate); 102 draw_duration_estimate);
(...skipping 19 matching lines...) Expand all
113 return; 122 return;
114 123
115 base::AutoLock scoped_lock(lock_); 124 base::AutoLock scoped_lock(lock_);
116 impl_thread_rendering_stats_.commit_to_activate_duration.Append( 125 impl_thread_rendering_stats_.commit_to_activate_duration.Append(
117 commit_to_activate_duration); 126 commit_to_activate_duration);
118 impl_thread_rendering_stats_.commit_to_activate_duration_estimate.Append( 127 impl_thread_rendering_stats_.commit_to_activate_duration_estimate.Append(
119 commit_to_activate_duration_estimate); 128 commit_to_activate_duration_estimate);
120 } 129 }
121 130
122 } // namespace cc 131 } // namespace cc
OLDNEW
« no previous file with comments | « cc/debug/rendering_stats_instrumentation.h ('k') | cc/layers/append_quads_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698