Index: cc/resources/worker_pool.cc |
diff --git a/cc/resources/worker_pool.cc b/cc/resources/worker_pool.cc |
index dca0c704f09dbc2559bf3f4adf860724ce9a6240..0c6769635477afbe95252e4968e5fbb9925219bc 100644 |
--- a/cc/resources/worker_pool.cc |
+++ b/cc/resources/worker_pool.cc |
@@ -9,6 +9,7 @@ |
#include "base/bind.h" |
#include "base/containers/hash_tables.h" |
+#include "base/debug/synthetic_delay.h" |
#include "base/debug/trace_event.h" |
#include "base/strings/stringprintf.h" |
#include "base/synchronization/condition_variable.h" |
@@ -340,7 +341,9 @@ void WorkerPool::Inner::Run() { |
{ |
base::AutoUnlock unlock(lock_); |
+ SYNTHETIC_DELAY_BEGIN("cc.worker_pool_task"); |
task->RunOnWorkerThread(thread_index); |
+ SYNTHETIC_DELAY_END("cc.worker_pool_task"); |
} |
// This will mark task as finished running. |