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

Side by Side Diff: third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.h

Issue 2866613002: EQT: Change Expected Queuing Time from per-second to sliding window (Closed)
Patch Set: escape backslash Created 3 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 #ifndef THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDULER _IMPL_H_ 5 #ifndef THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDULER _IMPL_H_
6 #define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDULER _IMPL_H_ 6 #define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDULER _IMPL_H_
7 7
8 #include "base/atomicops.h" 8 #include "base/atomicops.h"
9 #include "base/gtest_prod_util.h" 9 #include "base/gtest_prod_util.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 const base::PendingTask& task) override; 133 const base::PendingTask& task) override;
134 134
135 // TaskTimeObserver implementation: 135 // TaskTimeObserver implementation:
136 void WillProcessTask(TaskQueue* task_queue, double start_time) override; 136 void WillProcessTask(TaskQueue* task_queue, double start_time) override;
137 void DidProcessTask(TaskQueue* task_queue, 137 void DidProcessTask(TaskQueue* task_queue,
138 double start_time, 138 double start_time,
139 double end_time) override; 139 double end_time) override;
140 void OnBeginNestedRunLoop() override; 140 void OnBeginNestedRunLoop() override;
141 141
142 // QueueingTimeEstimator::Client implementation: 142 // QueueingTimeEstimator::Client implementation:
143 void OnQueueingTimeForWindowEstimated(base::TimeDelta queueing_time) override; 143 void OnQueueingTimeForWindowEstimated(
144 base::TimeDelta queueing_time,
145 base::TimeTicks window_start_time) override;
144 146
145 scoped_refptr<TaskQueue> DefaultTaskQueue(); 147 scoped_refptr<TaskQueue> DefaultTaskQueue();
146 scoped_refptr<TaskQueue> CompositorTaskQueue(); 148 scoped_refptr<TaskQueue> CompositorTaskQueue();
147 scoped_refptr<TaskQueue> LoadingTaskQueue(); 149 scoped_refptr<TaskQueue> LoadingTaskQueue();
148 scoped_refptr<TaskQueue> TimerTaskQueue(); 150 scoped_refptr<TaskQueue> TimerTaskQueue();
149 151
150 // Returns a new loading task queue. This queue is intended for tasks related 152 // Returns a new loading task queue. This queue is intended for tasks related
151 // to resource dispatch, foreground HTML parsing, etc... 153 // to resource dispatch, foreground HTML parsing, etc...
152 scoped_refptr<TaskQueue> NewLoadingTaskQueue(TaskQueue::QueueType queue_type); 154 scoped_refptr<TaskQueue> NewLoadingTaskQueue(TaskQueue::QueueType queue_type);
153 155
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 TaskCostEstimator loading_task_cost_estimator; 453 TaskCostEstimator loading_task_cost_estimator;
452 TaskCostEstimator timer_task_cost_estimator; 454 TaskCostEstimator timer_task_cost_estimator;
453 IdleTimeEstimator idle_time_estimator; 455 IdleTimeEstimator idle_time_estimator;
454 ThreadLoadTracker background_main_thread_load_tracker; 456 ThreadLoadTracker background_main_thread_load_tracker;
455 ThreadLoadTracker foreground_main_thread_load_tracker; 457 ThreadLoadTracker foreground_main_thread_load_tracker;
456 UseCase current_use_case; 458 UseCase current_use_case;
457 Policy current_policy; 459 Policy current_policy;
458 base::TimeTicks current_policy_expiration_time; 460 base::TimeTicks current_policy_expiration_time;
459 base::TimeTicks estimated_next_frame_begin; 461 base::TimeTicks estimated_next_frame_begin;
460 base::TimeTicks current_task_start_time; 462 base::TimeTicks current_task_start_time;
463 base::TimeTicks uma_last_queueing_time_report_window_start_time;
461 base::TimeDelta compositor_frame_interval; 464 base::TimeDelta compositor_frame_interval;
462 base::TimeDelta longest_jank_free_task_duration; 465 base::TimeDelta longest_jank_free_task_duration;
463 base::Optional<base::TimeTicks> last_audio_state_change; 466 base::Optional<base::TimeTicks> last_audio_state_change;
464 int timer_queue_suspend_count; // TIMER_TASK_QUEUE suspended if non-zero. 467 int timer_queue_suspend_count; // TIMER_TASK_QUEUE suspended if non-zero.
465 int navigation_task_expected_count; 468 int navigation_task_expected_count;
466 ExpensiveTaskPolicy expensive_task_policy; 469 ExpensiveTaskPolicy expensive_task_policy;
467 bool renderer_hidden; 470 bool renderer_hidden;
468 bool renderer_backgrounded; 471 bool renderer_backgrounded;
469 bool renderer_suspended; 472 bool renderer_suspended;
470 bool timer_queue_suspension_when_backgrounded_enabled; 473 bool timer_queue_suspension_when_backgrounded_enabled;
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
556 559
557 base::WeakPtrFactory<RendererSchedulerImpl> weak_factory_; 560 base::WeakPtrFactory<RendererSchedulerImpl> weak_factory_;
558 561
559 DISALLOW_COPY_AND_ASSIGN(RendererSchedulerImpl); 562 DISALLOW_COPY_AND_ASSIGN(RendererSchedulerImpl);
560 }; 563 };
561 564
562 } // namespace scheduler 565 } // namespace scheduler
563 } // namespace blink 566 } // namespace blink
564 567
565 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDU LER_IMPL_H_ 568 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDU LER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698