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

Side by Side Diff: cc/trees/proxy_timing_history.cc

Issue 1133673004: cc: Heuristic for Renderer latency recovery (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add SchedulerStateMachine::SwapThrottled Created 5 years, 7 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/trees/proxy_timing_history.h" 5 #include "cc/trees/proxy_timing_history.h"
6 6
7 #include "base/metrics/histogram.h" 7 #include "base/metrics/histogram.h"
8 8
9 const size_t kDurationHistorySize = 60; 9 const size_t kDurationHistorySize = 60;
10 const double kCommitAndActivationDurationEstimationPercentile = 50.0; 10 const double kCommitAndActivationDurationEstimationPercentile = 50.0;
11 const double kDrawDurationEstimationPercentile = 100.0; 11 const double kDrawDurationEstimationPercentile = 100.0;
12 const int kDrawDurationEstimatePaddingInMicroseconds = 0; 12 const int kDrawDurationEstimatePaddingInMicroseconds = 1000;
mithro-old 2015/05/27 04:40:15 Why this change? This is also a magic number, why
brianderson 2015/05/27 23:22:32 I'll move the padding to the scheduler so it's mor
13 13
14 namespace cc { 14 namespace cc {
15 15
16 ProxyTimingHistory::ProxyTimingHistory( 16 ProxyTimingHistory::ProxyTimingHistory(
17 RenderingStatsInstrumentation* rendering_stats_instrumentation) 17 RenderingStatsInstrumentation* rendering_stats_instrumentation)
18 : draw_duration_history_(kDurationHistorySize), 18 : draw_duration_history_(kDurationHistorySize),
19 begin_main_frame_to_commit_duration_history_(kDurationHistorySize), 19 begin_main_frame_to_commit_duration_history_(kDurationHistorySize),
20 commit_to_activate_duration_history_(kDurationHistorySize), 20 commit_to_activate_duration_history_(kDurationHistorySize),
21 rendering_stats_instrumentation_(rendering_stats_instrumentation) { 21 rendering_stats_instrumentation_(rendering_stats_instrumentation) {
22 } 22 }
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 base::TimeDelta::FromMilliseconds(100), 115 base::TimeDelta::FromMilliseconds(100),
116 50); 116 50);
117 UMA_HISTOGRAM_CUSTOM_TIMES("Renderer.DrawDurationOverestimate", 117 UMA_HISTOGRAM_CUSTOM_TIMES("Renderer.DrawDurationOverestimate",
118 draw_duration_overestimate, 118 draw_duration_overestimate,
119 base::TimeDelta::FromMilliseconds(1), 119 base::TimeDelta::FromMilliseconds(1),
120 base::TimeDelta::FromMilliseconds(100), 120 base::TimeDelta::FromMilliseconds(100),
121 50); 121 50);
122 } 122 }
123 123
124 } // namespace cc 124 } // namespace cc
OLDNEW
« cc/test/begin_frame_args_test.cc ('K') | « cc/test/scheduler_test_common.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698