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

Unified Diff: cc/resources/worker_pool.cc

Issue 53923005: Add synthetic delay testing framework (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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: 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.

Powered by Google App Engine
This is Rietveld 408576698