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

Side by Side Diff: components/scheduler/renderer/renderer_scheduler_impl.cc

Issue 2184123002: Change VirtualTimePolicy::PAUSE_IF_NETWORK_FETCHES_PENDING (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 "components/scheduler/renderer/renderer_scheduler_impl.h" 5 #include "components/scheduler/renderer/renderer_scheduler_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/debug/stack_trace.h" 8 #include "base/debug/stack_trace.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
(...skipping 1391 matching lines...) Expand 10 before | Expand all | Expand 10 after
1402 1402
1403 void RendererSchedulerImpl::OnQueueingTimeForWindowEstimated( 1403 void RendererSchedulerImpl::OnQueueingTimeForWindowEstimated(
1404 base::TimeDelta queueing_time) { 1404 base::TimeDelta queueing_time) {
1405 UMA_HISTOGRAM_TIMES("RendererScheduler.ExpectedTaskQueueingDuration", 1405 UMA_HISTOGRAM_TIMES("RendererScheduler.ExpectedTaskQueueingDuration",
1406 queueing_time); 1406 queueing_time);
1407 TRACE_COUNTER1(TRACE_DISABLED_BY_DEFAULT("renderer.scheduler"), 1407 TRACE_COUNTER1(TRACE_DISABLED_BY_DEFAULT("renderer.scheduler"),
1408 "estimated_queueing_time_for_window", 1408 "estimated_queueing_time_for_window",
1409 queueing_time.InMillisecondsF()); 1409 queueing_time.InMillisecondsF());
1410 } 1410 }
1411 1411
1412 void RendererSchedulerImpl::SetPerThreadTaskRunnerTimeDomain(
Sami 2016/07/28 10:46:34 The next policy update can overwrite these setting
alex clarke (OOO till 29th) 2016/07/29 13:35:01 Done.
1413 TimeDomain* time_domain) {
1414 DefaultTaskRunner()->SetTimeDomain(time_domain);
1415 CompositorTaskRunner()->SetTimeDomain(time_domain);
1416 LoadingTaskRunner()->SetTimeDomain(time_domain);
1417 TimerTaskRunner()->SetTimeDomain(time_domain);
1418 }
1419
1412 // static 1420 // static
1413 const char* RendererSchedulerImpl::UseCaseToString(UseCase use_case) { 1421 const char* RendererSchedulerImpl::UseCaseToString(UseCase use_case) {
1414 switch (use_case) { 1422 switch (use_case) {
1415 case UseCase::NONE: 1423 case UseCase::NONE:
1416 return "none"; 1424 return "none";
1417 case UseCase::COMPOSITOR_GESTURE: 1425 case UseCase::COMPOSITOR_GESTURE:
1418 return "compositor_gesture"; 1426 return "compositor_gesture";
1419 case UseCase::MAIN_THREAD_CUSTOM_INPUT_HANDLING: 1427 case UseCase::MAIN_THREAD_CUSTOM_INPUT_HANDLING:
1420 return "main_thread_custom_input_handling"; 1428 return "main_thread_custom_input_handling";
1421 case UseCase::SYNCHRONIZED_GESTURE: 1429 case UseCase::SYNCHRONIZED_GESTURE:
(...skipping 21 matching lines...) Expand all
1443 return "idle"; 1451 return "idle";
1444 case v8::PERFORMANCE_LOAD: 1452 case v8::PERFORMANCE_LOAD:
1445 return "load"; 1453 return "load";
1446 default: 1454 default:
1447 NOTREACHED(); 1455 NOTREACHED();
1448 return nullptr; 1456 return nullptr;
1449 } 1457 }
1450 } 1458 }
1451 1459
1452 } // namespace scheduler 1460 } // namespace scheduler
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698