Index: base/task_scheduler/task_tracker.cc |
diff --git a/base/task_scheduler/task_tracker.cc b/base/task_scheduler/task_tracker.cc |
index f38ec06130e6bebfd77d469478a34dea93b34951..985c35385903e99d99253eee2306fd577dd4ff99 100644 |
--- a/base/task_scheduler/task_tracker.cc |
+++ b/base/task_scheduler/task_tracker.cc |
@@ -10,6 +10,7 @@ |
#include "base/thread_task_runner_handle.h" |
#include "base/threading/sequenced_task_runner_handle.h" |
#include "base/threading/thread_restrictions.h" |
+#include "base/trace_event/trace_event.h" |
namespace base { |
namespace internal { |
@@ -17,6 +18,7 @@ namespace internal { |
namespace { |
const char kQueueFunctionName[] = "base::PostTask"; |
+const char kRunFunctionName[] = "TaskSchedulerRunTask"; |
robliao
2016/05/03 16:46:51
Comment where this name originated.
fdoray
2016/05/03 17:07:14
Done.
|
// Upper bound for the |
// TaskScheduler.BlockShutdownTasksPostedDuringShutdown histogram. |
@@ -102,6 +104,8 @@ void TaskTracker::RunTask(const Task* task) { |
new ThreadTaskRunnerHandle(task->single_thread_task_runner_ref)); |
} |
+ TRACE_TASK_EXECUTION(kRunFunctionName, *task); |
+ |
debug::TaskAnnotator task_annotator; |
task_annotator.RunTask(kQueueFunctionName, *task); |
} |