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

Unified Diff: components/scheduler/base/task_queue_manager.cc

Issue 2238883005: POC for InspectorInstrumentation adding InspectorWebPerfAgent Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add task observer to WebPerfAgent 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 side-by-side diff with in-line comments
Download patch
Index: components/scheduler/base/task_queue_manager.cc
diff --git a/components/scheduler/base/task_queue_manager.cc b/components/scheduler/base/task_queue_manager.cc
index 08eb78234b31a524623c090ab710d088a18efa28..c176c470d8fbdd198e6fd545a02aad4f15260cf3 100644
--- a/components/scheduler/base/task_queue_manager.cc
+++ b/components/scheduler/base/task_queue_manager.cc
@@ -215,7 +215,15 @@ void TaskQueueManager::DoWork(base::TimeTicks run_time, bool from_main_thread) {
bool should_trigger_wakeup = work_queue->task_queue()->wakeup_policy() ==
TaskQueue::WakeupPolicy::CAN_WAKE_OTHER_QUEUES;
- switch (ProcessTaskFromWorkQueue(work_queue, &previous_task)) {
+ if (!delegate_->IsNested() && task_time_tracker_)
+ fprintf(stderr, "\n[ TaskQueueMgr::willProcessTask ");
+
+ ProcessTaskResult result = ProcessTaskFromWorkQueue(work_queue, &previous_task);
+
+ if (!delegate_->IsNested() && task_time_tracker_)
+ fprintf(stderr, "TaskQueueMgr::didProcessTask ]\n");
+
+ switch (result) {
case ProcessTaskResult::DEFERRED:
// If a task was deferred, try again with another task. Note that this
// means deferred tasks (i.e. non-nestable tasks) will never trigger
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/core.gypi » ('j') | third_party/WebKit/Source/core/frame/LocalFrame.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698