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

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

Issue 1237283006: Extract trace from TaskAnnotator::RunTask to its call sites (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed cros build (now for real) Created 5 years, 5 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
« no previous file with comments | « base/message_loop/message_loop.cc ('k') | components/timers/alarm_timer_chromeos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/scheduler/child/task_queue_manager.cc
diff --git a/components/scheduler/child/task_queue_manager.cc b/components/scheduler/child/task_queue_manager.cc
index 620ede55ed35563d6e4c42a9f11fabf2d8e483ae..96d07d506a60174b8d34e8ea9196e193b1f9a725 100644
--- a/components/scheduler/child/task_queue_manager.cc
+++ b/components/scheduler/child/task_queue_manager.cc
@@ -691,8 +691,10 @@ bool TaskQueueManager::ProcessTaskFromWorkQueue(
FOR_EACH_OBSERVER(base::MessageLoop::TaskObserver, task_observers_,
WillProcessTask(pending_task));
}
- task_annotator_.RunTask("TaskQueueManager::PostTask",
- "TaskQueueManager::RunTask", pending_task);
+
+ TRACE_TASK_EXECUTION("TaskQueueManager::ProcessTaskFromWorkQueue",
+ pending_task);
+ task_annotator_.RunTask("TaskQueueManager::PostTask", pending_task);
// Detect if the TaskQueueManager just got deleted. If this happens we must
// not access any member variables after this point.
« no previous file with comments | « base/message_loop/message_loop.cc ('k') | components/timers/alarm_timer_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698