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

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

Issue 2890173002: EQT: Record the max queueing time from navigation start to navigation away (Closed)
Patch Set: add DEP 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"
11 #include "base/message_loop/message_loop.h" 11 #include "base/message_loop/message_loop.h"
12 #include "base/single_thread_task_runner.h" 12 #include "base/single_thread_task_runner.h"
13 #include "base/synchronization/lock.h" 13 #include "base/synchronization/lock.h"
14 #include "base/trace_event/trace_log.h" 14 #include "base/trace_event/trace_log.h"
15 #include "components/metrics/single_sample_metrics.h"
16 #include "components/metrics/single_sample_metrics_factory_impl.h"
15 #include "device/base/synchronization/shared_memory_seqlock_buffer.h" 17 #include "device/base/synchronization/shared_memory_seqlock_buffer.h"
16 #include "platform/scheduler/base/pollable_thread_safe_flag.h" 18 #include "platform/scheduler/base/pollable_thread_safe_flag.h"
17 #include "platform/scheduler/base/queueing_time_estimator.h" 19 #include "platform/scheduler/base/queueing_time_estimator.h"
18 #include "platform/scheduler/base/task_time_observer.h" 20 #include "platform/scheduler/base/task_time_observer.h"
19 #include "platform/scheduler/base/thread_load_tracker.h" 21 #include "platform/scheduler/base/thread_load_tracker.h"
20 #include "platform/scheduler/child/idle_canceled_delayed_task_sweeper.h" 22 #include "platform/scheduler/child/idle_canceled_delayed_task_sweeper.h"
21 #include "platform/scheduler/child/idle_helper.h" 23 #include "platform/scheduler/child/idle_helper.h"
22 #include "platform/scheduler/child/scheduler_helper.h" 24 #include "platform/scheduler/child/scheduler_helper.h"
23 #include "platform/scheduler/renderer/deadline_task_runner.h" 25 #include "platform/scheduler/renderer/deadline_task_runner.h"
24 #include "platform/scheduler/renderer/idle_time_estimator.h" 26 #include "platform/scheduler/renderer/idle_time_estimator.h"
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 bool timer_tasks_seem_expensive; 487 bool timer_tasks_seem_expensive;
486 bool touchstart_expected_soon; 488 bool touchstart_expected_soon;
487 bool have_seen_a_begin_main_frame; 489 bool have_seen_a_begin_main_frame;
488 bool have_reported_blocking_intervention_in_current_policy; 490 bool have_reported_blocking_intervention_in_current_policy;
489 bool have_reported_blocking_intervention_since_navigation; 491 bool have_reported_blocking_intervention_since_navigation;
490 bool has_visible_render_widget_with_touch_handler; 492 bool has_visible_render_widget_with_touch_handler;
491 bool begin_frame_not_expected_soon; 493 bool begin_frame_not_expected_soon;
492 bool in_idle_period_for_testing; 494 bool in_idle_period_for_testing;
493 bool use_virtual_time; 495 bool use_virtual_time;
494 bool is_audio_playing; 496 bool is_audio_playing;
497 std::unique_ptr<base::SingleSampleMetric> max_queuing_time_histogram;
495 std::set<WebViewSchedulerImpl*> web_view_schedulers; // Not owned. 498 std::set<WebViewSchedulerImpl*> web_view_schedulers; // Not owned.
496 RAILModeObserver* rail_mode_observer; // Not owned. 499 RAILModeObserver* rail_mode_observer; // Not owned.
497 WakeUpBudgetPool* wake_up_budget_pool; // Not owned. 500 WakeUpBudgetPool* wake_up_budget_pool; // Not owned.
498 std::array<base::TimeDelta, 501 std::array<base::TimeDelta,
499 static_cast<size_t>(TaskQueue::QueueType::COUNT)> 502 static_cast<size_t>(TaskQueue::QueueType::COUNT)>
500 unreported_task_duration; 503 unreported_task_duration;
501 base::HistogramBase* task_duration_per_queue_type_histogram; 504 base::HistogramBase* task_duration_per_queue_type_histogram;
502 }; 505 };
503 506
504 struct AnyThread { 507 struct AnyThread {
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
571 574
572 base::WeakPtrFactory<RendererSchedulerImpl> weak_factory_; 575 base::WeakPtrFactory<RendererSchedulerImpl> weak_factory_;
573 576
574 DISALLOW_COPY_AND_ASSIGN(RendererSchedulerImpl); 577 DISALLOW_COPY_AND_ASSIGN(RendererSchedulerImpl);
575 }; 578 };
576 579
577 } // namespace scheduler 580 } // namespace scheduler
578 } // namespace blink 581 } // namespace blink
579 582
580 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDU LER_IMPL_H_ 583 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_RENDERER_SCHEDU LER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698